This tiny module can be successfully used for creating complex image styles from the command line via Drush. You can use it in interactive mode, or via script. The common difference from similar modules is a parameters JSON format which you can use directly from a command line.

You can use these commands:

  • image-styles:add-effect (isae): Adds the image effect to the image style.
  • image-styles:create (isc): Creates an image style.
  • image-styles:delete (isd): Deletes the image style.
  • image-styles:delete-effect (isde): Deletes the image effect from the image style.
  • image-styles:effects (ise): Displays an image effects list.
  • image-styles:list (isl): Displays an image styles list.
  • image-styles:params (isp): Displays an image effect parameters list.

Use help (--help) for commands to learn more.

This module successfully works together with Image Effects module and others like it. Please use interactive mode and JSON parameters with caution! Parameter values are not validated, so you can easily break your site. For example, you MUST use web-style hex colors ("#RRGGBB") as values for all color fields. You have been warned.

Similar modules:

Project information

Releases