joshembling / image-optimizer

🎨 Optimize your Filament images before they reach your database.
https://filamentphp.com/plugins/joshembling-image-optimizer
MIT License
66 stars 14 forks source link

[Bug]: Unsupported image type image/svg+xml #26

Closed Ax3lFernus closed 4 months ago

Ax3lFernus commented 6 months ago

What happened?

When i try to upload an svg, the GD driver throws this exeption: Intervention\Image\Exception\NotReadableException: Unsupported image type image/svg+xml. Is there any way to skip optimization just for this file format? Thanks!

How to reproduce the bug

When i upload an *.svg file, the Intervention\Image\Exception\NotReadableException exeption occurs.

Package Version

1.4.0

PHP Version

8.3.0

Laravel Version

11.0

Which operating systems does with happen with?

Linux

Notes

No response

joshembling commented 4 months ago

https://github.com/joshembling/image-optimizer/discussions/11