We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0496393 + 5bc420b commit 6c3adecCopy full SHA for 6c3adec
.gitignore
@@ -0,0 +1,3 @@
1
+.idea
2
+vendor
3
+composer.lock
lib/ImageResize.php
@@ -77,7 +77,9 @@ public function __construct($filename)
77
throw new ImageResizeException('Unsupported file type');
78
}
79
80
- $image_info = getimagesize($filename,$this->source_info);
+ if (!$image_info = getimagesize($filename, $this->source_info)) {
81
+ $image_info = getimagesize($filename);
82
+ }
83
84
if (!$image_info) {
85
throw new ImageResizeException('Could not read file');
0 commit comments