kamsar / Dianoga

An automatic image optimizer for the Sitecore media library.
Other
104 stars 45 forks source link

Encoded .svg files in media cache don't render appropriately on webpages #79

Closed ericsteinmetz closed 3 years ago

ericsteinmetz commented 3 years ago

Version of Dianoga

5.1.1

Environment description

Sitecore 8.2.7

What configs you have enabled

enable Dianoga.Svg.config

Reproducible steps (1... 2... 3...) that cause the issue

upload .svg image visit page with with uploaded image to store the image in the media cache if asynchronous, ctrl + f5 to force refresh on the page to ensure if retrieves the file from the cache am seeing a encoded .svg text and not an image

What you expected to see, versus what you actually saw

not sure if I should expect a encoded .svg file or a typical .svg image with xml format in the media cache. If I should expect encoded .svg file, do I need extra logic to unencode the file before display on the webpage

I have included an example of a encoded .svg file 103.zip

Example of output 2020-12-04_9-10-10

Relevant logs

markgibbons25 commented 3 years ago

What encoding is this? Looks like a binary?

markgibbons25 commented 3 years ago

Closing from lack of info