Closed boarderjen06 closed 3 years ago
A couple things to check:
Also having the exact same issue. Although I'm running on Sitecore 9.3, I've only got the Dianoga.WebP.CDN.config enabled for CDN usage and have done the change for sitecore_media.ashx
This might be fixed in 5.3.0 please can you check? There may have been a race condition.
Hi @markgibbons25, just updated the nuget package to 5.3.0 and that's sorted it!
Thanks for the help :)
Version of Dianoga
5.2
Environment description
local development environment - Windows 10 OS with Sitecore 10 standalone environment
What configs you have enabled
Dianoga.DisableForSites.Config Dianoga.Jpeg.config Dianoga.Png.config Dianoga.Strategy.GetMediaStreamSync.config Dianoga.WebP.CDN.config Dianoga.WebP.config Changed sitecore_media.ashx path type in the web.donfig to use Dianoga.
Note I also tried enabling the following set of configs instead, but had the same results: Dianoga.DisableForSites.Config Dianoga.Jpeg.config Dianoga.Png.config Dianoga.Strategy.MediaCacheAsync.config Dianoga.WebP.config Return sitecore_media.ashx to original, pointing at Sitecore's Media Request Handler
Reproducible steps (1... 2... 3...) that cause the issue
What you expected to see, versus what you actually saw
Relevant logs
There are many messages like this in the Sitecore log file: Dianoga: optimized /FILEPATH HERE .jpg [original size: 320w x 280h 14041 bytes] [final size: 10273 bytes] [saved 3768 bytes / 26.84%] [Optimized in 265ms] [Extension jpg]
And there are some messages like this: Dianoga: messages occurred while optimizing /FILEPATH HERE: MozJpegOptimizer: the optimized image resulted in a larger file size (68331 vs 53598). Using the original instead.
There is nothing in the log file related to image compression with "webp", and no errors related to Dianoga.
Here are contents for an example ini file: [key] ?as=False&bc=0&h=0&iar=False&mh=0&mw=0&sc=0&thn=False&w=0
[extension] jpg
[headers] Content-Type: image/jpeg
[dataFile] 179ee381b1f149188bfb04ca056f24de.jpg
;-----
[key] ?as=False&bc=0&h=280&iar=False&mh=0&mw=0&sc=0&thn=False&w=320
[extension] jpg
[headers] Content-Type: image/jpeg
[dataFile] 0c87bc4077d2488ea1a3b85e8511ffa5.jpg
;-----