Skip to content

Integrates Fly Dynamic Image Resizer with WP Smush, on the fly.

License

Notifications You must be signed in to change notification settings

Y-collective/Icarus

Repository files navigation

Icarus

Integrates Fly Dynamic Image Resizer with WP Smush.

Fly Dynamic Image Resizer generates images on the fly. Those generated images never pass through WP Smush automatically, thus are left unoptimized.

This plugin creates a bridge between the two, by automatically piping dynamically resized and generated images from Fly Dynamic Image Resizer through WP Smush's optimization function.

Requirements

Installation

  1. Copy the icarus folder to wp-content/plugins.
  2. Activate the plugin through the WordPress admin panel.

Usage

There is no GUI for this plugin, since all it does is that it just hooks on Fly's action which is fired upon the creation of a new image, and feeds the generated image's file path to WP Smush under the hood. That's it.

Obviously this plugin only pipes images through WP Smush that are generated after this plugin is activated. Old ones are left untouched. If you're looking to optimize images that were dynamically generated by Fly Dynamic Image Resizer in the past, check out WP Smush PRO, which is capable of Bulk Smushing / Directory Smushing.

In case you need to disable the optimization functionality for specific images, you can do so, by using the icarus_disallow_optimize_image filter with an array of attachment ids.

Our Company

We are a Hungary-based digital agency, working with a range of clients across Europe on cutting edge digital projects. Check out our website at y-collective.com.

License

GPL-2.0+ © Y-collective