File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/*
3
- * jQuery File Upload Plugin PHP Class 7.0.0
3
+ * jQuery File Upload Plugin PHP Class 7.0.1
4
4
* https://github.com/blueimp/jQuery-File-Upload
5
5
*
6
6
* Copyright 2010, Sebastian Tschan
@@ -901,12 +901,16 @@ protected function get_image_size($file_path) {
901
901
if ($ this ->options ['image_library ' ]) {
902
902
if (extension_loaded ('imagick ' )) {
903
903
$ image = new Imagick ();
904
- if (@$ image ->pingImage ($ file_path )) {
905
- $ dimensions = array ($ image ->getImageWidth (), $ image ->getImageHeight ());
906
- $ image ->destroy ();
907
- return $ dimensions ;
904
+ try {
905
+ if (@$ image ->pingImage ($ file_path )) {
906
+ $ dimensions = array ($ image ->getImageWidth (), $ image ->getImageHeight ());
907
+ $ image ->destroy ();
908
+ return $ dimensions ;
909
+ }
910
+ return false ;
911
+ } catch (Exception $ e ) {
912
+ error_log ($ e ->getMessage ());
908
913
}
909
- return false ;
910
914
}
911
915
if ($ this ->options ['image_library ' ] === 2 ) {
912
916
$ cmd = $ this ->options ['identify_bin ' ];
You can’t perform that action at this time.
0 commit comments