hide warning - we have already checked if it doesnt exist - if it still has problems...
authorAlan <alan@roojs.com>
Fri, 30 Sep 2022 03:13:19 +0000 (11:13 +0800)
committerAlan <alan@roojs.com>
Fri, 30 Sep 2022 03:13:19 +0000 (11:13 +0800)
File/Convert/Solution/scaleimage.php

index 8bcd671..c255ef3 100644 (file)
@@ -104,7 +104,7 @@ class File_Convert_Solution_scaleimage extends File_Convert_Solution
             // changed to using 'sample' rather than resize
             //-- it's alot faster? - not sure about quality though?
             // 5Mb is the cut off to use the faster version.
-            $resize_method = filesize($fn) > 50000000 ? '-sample' : '-scale';
+            $resize_method = @filesize($fn) > 50000000 ? '-sample' : '-scale';
             
             $cmd = "{$CONVERT} " . $strip . " -colorspace sRGB -interlace none -density 800 -quality 90 ". 
                  (strlen($scale) ?  " {$resize_method} '{$scale}' " : '' ).