Skip to content
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

WebP image not getting generated from CDN #112

Closed
NStrongin opened this issue Jun 8, 2022 · 5 comments
Closed

WebP image not getting generated from CDN #112

NStrongin opened this issue Jun 8, 2022 · 5 comments

Comments

@NStrongin
Copy link

Version of Dianoga
5.4.1

Environment description
Sitecore.NET 9.3.0
.NET Framework 4.7.2

What configs you have enabled
Dianoga.DisableForSites.config
Dianoga.Jpeg.config
Dianoga.Log.config
Dianoga.Png.config
Dianoga.Svg.config
Dianoga.WebP.CDN.config
Dianoga.WebP.config

Web.config changes:
I`ve replaced in sitecore_media.ashx type to "Dianoga.MediaRequestHandler, Dianoga" name="Sitecore.MediaRequestHandler"

What you expected to see, versus what you actually saw
Expected: To see images being pulled down in webp format
Actual: Images are received in optimized formats (jpeg, png, etc), but not in webp.

Logs files:
All logs files are empty.

Comments
After deploy on CD in Azure MediaProvider adds extension webp as a URL param. This should trigger the webp optimizer in the MediaRequestHandler. But the MediaProvider doesn’t appear to run. On my local envirement I don`t use CDN and Dianoga works fine. And I am probably missing something?

@NStrongin
Copy link
Author

Do you have any updates about this issue?

@markgibbons25
Copy link
Collaborator

It sounds like an environment issue so I would recommend asking in Sitecore Slack to get help.

Antonytm added a commit to Antonytm/Dianoga that referenced this issue Jun 18, 2022
@Antonytm
Copy link
Contributor

@NStrongin

Do you have Dianoga.WebP.CDN.config enabled locally and everything is fine?
(ignore that you are not under CDN)

Only if works locally with Dianoga.WebP.CDN.config enabled:
Can you try to clean mediaCache folder on server?
You may have cache files and keys that prevents new files to be generated.

@NStrongin
Copy link
Author

@Antonytm

We cleared the mediaCache folder on the server after adding Dianoga.

@markgibbons25
Copy link
Collaborator

For Azure CDN support you'll need to upgrade to 6.1.0 and review the readme config for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants