I have an issue where I want to have an image resized, but have both a cropped and non-cropped version available (of the same size!)
The code to do this is simple:
$imagefull = $image->size(320,320,array( 'cropping' => false);
$imagecropped = $image->size(320,320,array( 'cropping' => true);
However, this only creates ONE variant of the image:
eg. imagename.320x320.jpg
So the same image is shown twice in the output page, instead of the two options
Can anyone suggest a clean way of doing this? (ie. not duplicating every base image)
Is there a way of creating named Image Variations? And do these names go into the filename to guarantee uniqueness?
eg. $image->addVariation($name,$size,$options) or similar
Thanks