October 22, 2014

New on the marketplace : Image Optimizer V2

I have just release a new module on the marketplace today: Image Optimizer V2


History

The first version has been developed by MIKAEL HÖGBERG is available here. Here is his blog post about it: http://mikael.com/2013/08/image-optimizer-module/ A very big thank you for this module!


New features

This version 2 is now based on jpegtran and pngquant to compress the pictures but you can use your favorite tool if you prefer. The biggest addition of this module is a wizard similar to the publishing wizard which allow you to compress a complete folder in place of compressing picture per picture.


Installation

  • Install the packages with the /sitecore/admin/UpdateInstallationWizard.aspx
  • Download pngquant here: http://pngquant.org/ under the section "Command Line" / "Binary for windows" and save this file in the root of your data folder.
  • Download jpegtran here: http://jpegclub.org/jpegtran.exe and save this file in the root of your data folder.

Advanced configurations

The configuration file is available in _App_Config\Include\ImageOptimizer.config. The following setting are available

  • imageOptimizer.pngCommand: The path to the png commande line tool for the png
  • imageOptimizer.pngOptions: The command line arguments
  • imageOptimizer.jpgCommand: The path to the png commande line tool for the jpg
  • imageOptimizer.jpgOptions: The command line arguments
  • imageOptimizer.PoolingInterval: The pool interval for the wizard you shouldn't change it

3 comments:

  1. What difference should I see in the images on the website after they are compressed and published?

    ReplyDelete
  2. No differences in term of visual just a difference in term of image size. You can check it by
    1) Open your browser network profiler or fiddler
    2) Load your site with the non-optimized image and check the image size
    3) Optimize the images with the button
    4) Load your site with the non-optimized image and check the image size -> The size should have changed if the image wasn’t optimized yet

    ReplyDelete
  3. I seem to be able to optimize single images only. when selecting the media folder with images in it I'm unable to compress them all in one go.

    ReplyDelete