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
Reproducible steps (1... 2... 3...) that cause the issue
Clear the MediaCache
Navigate to the sitecore media library, bring up any pdf file and note the pdf icon under the "Media" section
Inspect element on the icon, then scroll up to the iframe holding the image (about 2 levels up). Then right click on the iframe src and "open in new tab."
Return to the media library, and view another item.
Click on the same pdf file you viewed in step 2, then scroll down to the media section.
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."
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.
The text was updated successfully, but these errors were encountered:
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.
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."
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.
The text was updated successfully, but these errors were encountered: