Skip to content

Commit 5b0c405

Browse files
committed
fix: fix the image handler.
1 parent 49dabc1 commit 5b0c405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Images/Handlers/GDHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ protected function getImageResource(string $path, int $imageType)
354354
throw ImageException::forInvalidImageCreate(lang('Images.pngNotSupported'));
355355
}
356356

357-
return imagecreatefrompng($path);
357+
return @imagecreatefrompng($path);
358358

359359
case IMAGETYPE_WEBP:
360360
if (! function_exists('imagecreatefromwebp')) {

0 commit comments

Comments
 (0)