You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you upload any image not supported by gd.so, the server will throw an execption in /var/www/html/vendor/imagine/imagine/src/Gd/Imagine.php at line 95, since createImageFromString($data) above it only creates a valid resource if GD supports the image format.
The GD bundled with the docker image (jbtronics/part-db1:latest) does not support a lot of formats. PNG works, JPEG or WEBP does not.
It should probably fail more gracefully, as you need to delete the file on disk to get PartDB running again.
To Reproduce
Steps to reproduce the behavior:
Add an attachment to any part.
Upload a jpeg.
Wonder why PHP is not able to access the file on disk.
The text was updated successfully, but these errors were encountered:
Part-DB should dont throw an exception which makes it impossible to continue now. Instead, the original file is served, if no thumbnail can be generated.
If you upload any image not supported by gd.so, the server will throw an execption in /var/www/html/vendor/imagine/imagine/src/Gd/Imagine.php at line 95, since createImageFromString($data) above it only creates a valid resource if GD supports the image format.
The GD bundled with the docker image (jbtronics/part-db1:latest) does not support a lot of formats. PNG works, JPEG or WEBP does not.
It should probably fail more gracefully, as you need to delete the file on disk to get PartDB running again.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: