We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4105233 commit 56d364aCopy full SHA for 56d364a
src/PHPImageWorkshop/ImageWorkshop.php
@@ -55,7 +55,7 @@ class ImageWorkshop
55
*/
56
public static function initFromPath($path, $fixOrientation = false)
57
{
58
- if (!file_exists($path)) {
+ if (false === filter_var($path, FILTER_VALIDATE_URL) && !file_exists($path)) {
59
throw new ImageWorkshopException(sprintf('File "%s" not exists.', $path), static::ERROR_IMAGE_NOT_FOUND);
60
}
61
0 commit comments