Skip to content

Commit

Permalink
Merge pull request #7570 from ping-yee/230613_img
Browse files Browse the repository at this point in the history
fix: `imagecreatefrompng()` gd-png: libpng warning
  • Loading branch information
kenjis committed Jun 17, 2023
2 parents eea5087 + 5b0c405 commit 557b0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Images/Handlers/GDHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ protected function getImageResource(string $path, int $imageType)
throw ImageException::forInvalidImageCreate(lang('Images.pngNotSupported'));
}

return imagecreatefrompng($path);
return @imagecreatefrompng($path);

case IMAGETYPE_WEBP:
if (! function_exists('imagecreatefromwebp')) {
Expand Down

0 comments on commit 557b0ed

Please sign in to comment.