Skip to content

Commit 557b0ed

Browse files
authored
Merge pull request #7570 from ping-yee/230613_img
fix: `imagecreatefrompng()` gd-png: libpng warning
2 parents eea5087 + 5b0c405 commit 557b0ed

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)