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

Dianoga do not optimize several images in Sitecore media library folder #124

Open
PoojithaHebbar opened this issue Nov 21, 2022 · 7 comments

Comments

@PoojithaHebbar
Copy link

I have recently upgraded to Dianoga v 6.1.0. After the upgradation if I check the Dianoga.log to see if the images are getting optimized, I see an issue with the images that are directly under the media library folder in sitecore.

For example: Media File at path : /sitecore/media library/example_600x337.png

The entry from Dianoga.log : " /example_600x337 cannot be optimized due to media type or path exclusion"

All the other images that are not directly under media library are getting optimized.
For example : Media File at path : /sitecore/media library/xxx/example.jpg

I have not included any custom settings in the Dianoga configuration files. All the settings are as per default.

@markgibbons25
Copy link
Collaborator

Do you have a png optimizer enabled?

@PoojithaHebbar PoojithaHebbar changed the title Dianoga go not optimize images in Sitecore media library root folder Dianoga do not optimize images in Sitecore media library root folder Nov 22, 2022
@PoojithaHebbar
Copy link
Author

PoojithaHebbar commented Nov 22, 2022

Yes..I have the Dianoga.png.config enabled and PngOptimizerCL.exe is also present in Dianoga tool folder

@PoojithaHebbar PoojithaHebbar changed the title Dianoga do not optimize images in Sitecore media library root folder Dianoga do not optimize several images in Sitecore media library folder Nov 23, 2022
@PoojithaHebbar
Copy link
Author

Update: I notice that it's just not the root folder. Several other images are also not being optimized. Can you please let me know how to trouble shoot this.

  • I have checked the media item. There is no issue with the media item.
  • I have checked the configs. We have not explicitly specified any paths or media type from exclusion

@markgibbons25
Copy link
Collaborator

pngquant.exe is the default png optimizer.
Can you list all configs that are enabled and any changes that you have made from the defaults?
Essentially there is no matching optimizer for that file type. It could be that the specific mime type is not actually png and is webp for example.

@PoojithaHebbar
Copy link
Author

I see that for successfull optmization it has the extension added to the media file name in log :
INFO Dianoga: optimized /Default Website/sc_logo.png

But for unsuccessful it is not adding any extension to the file name:
INFO Dianoga: /Images/491733 cannot be optimized due to media type or path exclusion
INFO Dianoga: /Images/Fight_against_sepsis_120x120 cannot be optimized due to media type or path exclusion

I have attached the media files which are getting excluded from optmization.
Fight_against_sepsis_120x120
491733

Please note" It's just not png, I see that the jpg files are also getting excluded from optimization

I'm hereby attaching the configs and the Dianoga Tools.
Dianoga Configs.zip
Tools.zip

@MichalMajerStonex
Copy link

@PoojithaHebbar Did you solve the issue? I'm facing the same with quite a lot of images from my library, mainly PNG ones

@fabioalmcosta
Copy link

Hi @PoojithaHebbar. I know this is an old issue. But do you have any idea about how you solved this issue? I am having exaclty the same issue now on a project and I am not being able to understand how to solve it.

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

4 participants