-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show error 500 for unsupported image types #1815
Show error 500 for unsupported image types #1815
Conversation
I’m not sure if we should actually trigger this warning as we include |
Am I understanding correctly that eg. GD supports TIFF but ImageMagick does not? There‘s no way to „retrieve“ the valid image types right? |
No, I think it’s the other way round. But which image types are supported depends on the setup. Both Imagick and GD can be set up with different supported image formats.
I don’t think there is. |
I'm for dropping the |
This reverts commit 8f1807c.
Done in 127a162 |
Thank you @ausi. |
Description ----------- #1913 was another case where the `contao.image.valid_extensions` caused confusion. I think especially because the IMagick error message is not very descriptive. We tried triggering a warning at container build time in #1815 (comment) but concluded that it might not be a good idea. How about improving the error message of the exception? Before: <img width="856" alt="Bildschirmfoto 2020-07-12 um 10 51 56" src="https://user-images.githubusercontent.com/367169/87242551-fcad2700-c42d-11ea-9269-979670e8762b.png"> After: <img width="857" alt="Bildschirmfoto 2020-07-12 um 10 51 27" src="https://user-images.githubusercontent.com/367169/87242555-033b9e80-c42e-11ea-8128-b622364ee43a.png"> Commits ------- e44ff13 Improve error message for unsupported image formats
Description ----------- #1913 was another case where the `contao.image.valid_extensions` caused confusion. I think especially because the IMagick error message is not very descriptive. We tried triggering a warning at container build time in contao/contao#1815 (comment) but concluded that it might not be a good idea. How about improving the error message of the exception? Before: <img width="856" alt="Bildschirmfoto 2020-07-12 um 10 51 56" src="https://user-images.githubusercontent.com/367169/87242551-fcad2700-c42d-11ea-9269-979670e8762b.png"> After: <img width="857" alt="Bildschirmfoto 2020-07-12 um 10 51 27" src="https://user-images.githubusercontent.com/367169/87242555-033b9e80-c42e-11ea-8128-b622364ee43a.png"> Commits ------- e44ff13c Improve error message for unsupported image formats
Based on #1814