Skip to content

Commit

Permalink
fix: fix the image handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-yee committed Jun 13, 2023
1 parent 49dabc1 commit 5b0c405
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 5b0c405

Please sign in to comment.