3

I'm working on performance tuning the sitecore media images. Noticed Dianoga module.

Appreciate if some one can help clarify below:

  1. Does this module optimize the image parameter such as w,h etc. Does this module optimize the the sitecore has already optimized for given parameter?

  2. Noticed bunch of exe files been added under App_data folder. Will this expose any security issue in prod:

enter image description here

  1. Finally how do we test that module is doing it's job properly? I guess view the image size on profiler?

1 Answer 1

6
  1. Yes.

When media images are requested, Dianoga automatically runs mozjpeg, PNGOptimizer, nQuant, or SVGO on the image data immediately after it is placed in the Sitecore media cache.

Dianoga ensures that your site is always serving fully optimised media library images even if you are using Sitecore's dynamic resizing features (for example with Adaptive Images). Even if you have already optimized every image uploaded into the media library, after Sitecore performs image processing the result is not optimized (an unfortunate limitation of most other image optimization libraries for Sitecore is that they only apply to the original image).

In short; Dianoga will optimise all versions of your image. It does not touch the Media Library items at all, it operates purely on images served by Sitecore - these are all placed in the Media Cache.

  1. No. Outside callers to the website would not be able to execute these - and if there is a security gap here, it would be present whether or not you had Dianoga installed.

  2. Sure. But also check logfiles, Dianoga logs extensively. Be aware that you will see NO effect from Dianoga, if your Media Cache is already populated.

More information here: Dianoga

1
  • This is pretty much right on.
    – Kam Figy
    Commented May 10, 2017 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.