In this update we’ve added a new --exclude flag to the hypernode-image-optimizer. This option allows you to exclude specific subdirectories from the automated Magento image optimization. This can be handy in case you have already pre-optimized some images before deployment and you don’t want the optimizer to look at them again.

The hypernode-image-optimizer can be used to save disk space and speed up your shop by shrinking images without quality loss (depending on the compression level). It is very easy to use and many people run it in a periodic cron so it optimizes images in a shop every night.

To use the hypernode-image-optimizer and exclude one or more directories, specify --exclude with one or more paths. For example:

Thanks to Tjerk Ameel from Indie Group for suggesting to add an option to exclude specific directories.