I am trying to do some svg magic on my images. In short: I want to generate a svg representation of my images for some kind of preview (before the actual image is loaded).
I am using
'fileMethods' => […] for that. This works fine as long as I call my method on the original image like
$myImage->svgPreview() but that’s not enough. Because I am cropping images, I need a preview for the cropped image, but:
$image->crop(420, 195)->svgPreview() does not work, it seems like it’s not called at all.
So my question is: Is it possible to call a custom file method on a cropped/resized image?