-
Notifications
You must be signed in to change notification settings - Fork 45
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
Dianoga on production CD is weird with resizing #70
Comments
Is it possible that after disabling WebP, the media cache wasn't fully cleared, so it was still serving some WebP images? |
@markgibbons25, no I checked in chrome dev tools, that images are served in png and jpg formats. |
Can you give more detail on how you are rendering the link URL for this example, and what the final url query string is rendering as. |
Final URL looked like Where the original item was '/de-at/-/media/path-to-media-item' e.g. 1280x640. The strangest thing was that after clearing the cached image for this exact medium to restart the regeneration, the image was correctly compressed and resized. But then the problem could be found elsewhere. So, approximately 5-10% of images didn't resized & compressed correctly, but it was too much for us. |
Found the issue. WebPOptimizer customizes AdditionalToolArguments property whenever an image is being processed. However, the value of that property is shared among concurrent optimizations. Hence, it was being overwritten by concurrent runs, messing with the -resize parameter for the tool. PR to fix it created: #81 |
Thanks @ozkansayin great work! Added to 5.2.0 |
@ozkansayin, that's kind of crazy, that you found and solved this issue. Great job, thanks! |
Dianoga version
Dianoga 5.0.1
Sitecore version
Sitecore 9.0.1
Config
Tried with multiple configurations: Sync, async modes, WebP enabled/disabled
Latest config:
Steps to reproduce & results
No actual steps to reproduce.
What we did:
Expected:
Dianoga works well with resizing.
Actual:
P.S.
I clear realize, that this description is very abstract and there's no actual steps to reproduce. By the way I have some ideas:
Maybe someone else faced with issue like this? Cause, Dianoga is great tool, but now we disabled it because of wrong images generated.
The text was updated successfully, but these errors were encountered: