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
file manager: webp thumbnail not shown #1913
Comments
Please post the html source code of such a WEBP thumbnail. |
Which browser and browser version are you using? |
Please update to Contao 4.9.4. This should show a 500 error instead of the 404 and show up in the error log. |
ok. In Contao 4.9.4 the error code changed to 500. The back end GUI shows the same problem: it does not show the webp-image. only the border. I as user expect: a working thumbnail or no thumbnail (like a pdf file) |
What does the error log say? |
If you use the profiler, you need to show the profile of the request responding with the |
|
Btw. if you do use the debug mode, you can go into the profiler and then click on "Last 10" in the top left, to get a list of the last 10 profiled requests. There you can select the one with the Also, please post error messages etc. in three back ticks, not just one :) |
It looks like something is wrong with your ImageMagick setup. Please create a php file on your webspace with the following contents (replacing
And post the output here. |
I put it in test.php. The results:
|
So it looks like WEBP is not supported with ImageMagick on your webspace.
In this case you could switch to GD to get WEBP support: contao:
image:
imagine_service: 'contao.image.imagine.gd' |
I created a pull request #1932 to make it easier in the future to debug such errors. |
In which file do I have to write that configuration? |
|
Perfect. It works after I refreshed the Symphony cache (in contao manager). In the same time I asked the support of Alfahosting to enable Webp in ImageMagick (yet waiting for answer) |
Alfahosting will not and does not want change the ImageMagick configs. |
I think this issue can be closed then. Do you agree @mathContao? |
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
yes. Thank you for your help |
Affected version(s)
Contao 4.9.3
Description
webp pictures cannot shown as thumbnail in file manager.
The picture can shown in the full view of the file manager
But cannot shown in the edit mode
as example I took a picture from the Contao demo
and saved it with paint.net to webp
DSC_5403.zip
The text was updated successfully, but these errors were encountered: