Closed lampinge3 closed 2 years ago
We are having the same issue. The optimization process is changing the icon from a png to a pdf which causes an auto download of the corrupt pdf document every time you interact with the media in the media library.
Thanks for the great repro steps. Fixed in 5.4.1
Version of Dianoga
5.4.0 Can also be replicated in 5.2.0 and 5.3.0
Environment description
Sitecore 9.3
What configs you have enabled
Dianoga.Jpeg.config Dianoga.Jpeg.Lossy.config Dianoga.Png.config Dianoga.Strategy.MediaCacheAsync.config Dianoga.WebP.config
Reproducible steps (1... 2... 3...) that cause the issue
What you expected to see, versus what you actually saw
Expect to see the same pdf logo under media library. Instead, once that logo gets cached by Dianoga, the media section displays an html webpage with error "Failed to load pdf document."![image](https://user-images.githubusercontent.com/26490276/127555734-235dfe1b-fb9f-4ada-b8e9-b29f35a563b7.png)
Relevant logs
There was nothing related to the issue the logs.
Other notes
We are using a custom template for pdfs but this seems unrelated. Our "initials_pdf" template inherits /sitecore/templates/System/Media/Unversioned/Pdf.