image_generate_thumb
Triggered before an image thumbnail is created, allows to modify generated thumbnails. The order in which multiple plugins process an image is defined by the order in which plugins are sorted in the store’s backend.
Shop-Script
Input (passed by reference)
$params array Parameters.
$params['path'] string Path to original image file.
$params['image'] waImage Image handling class instance.
$params['size'] string Image dimensions string—either one integer, both for with and for height, or width and height values separated by 'x' character.
$params['max_size'] mixed Maximum image size expressed with a value for which is_numeric() function will return 'true'.
$params['path'] string Path to original image file.
$params['image'] waImage Image handling class instance.
$params['size'] string Image dimensions string—either one integer, both for with and for height, or width and height values separated by 'x' character.
$params['max_size'] mixed Maximum image size expressed with a value for which is_numeric() function will return 'true'.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function imageGenerateThumb($params) { shopMyPluginHelper::updateImage($params); }