HIDE ERRORS ON GET IMAGE SIZE
authorAlan Knowles <alan@roojs.com>
Thu, 2 Jul 2020 04:34:15 +0000 (12:34 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 2 Jul 2020 04:34:15 +0000 (12:34 +0800)
File/Convert/Solution.php

index 72e865d..ce997e3 100644 (file)
@@ -1025,7 +1025,7 @@ class File_Convert_Solution
         
         //echo "GOT TARGET"  . $target;
         
-        list($width, $height) = getimagesize($fn);
+        list($width, $height) = @getimagesize($fn);
         
         $extent = '';
         switch (true) { // what about fit/pad etc...
@@ -1090,7 +1090,7 @@ class File_Convert_Solution
             
              
             
-            list($width, $height) = getimagesize($fn);
+            list($width, $height) = @getimagesize($fn);
             
             
             $pad = is_numeric($x) && is_numeric($y);