Hello,
I am currently playing around to build my first module. It will be a simple module for the ImageOptim web service, but I am a little bit stuck on which right hook to use.
Currently I use following hook:
$this->pages->addHookAfter('saveFieldReady', $this, 'imageOptimSave');
I would like to pass images and its variations to the web service after adding them to the image field. But if I use the saveFieldReady hook only the original image will be optimized, not the API generated image variations, because they will be generated after viewing the page for the first time.
Can anybody please help me how to hook into the image variations? I already tried to use my own method, but this one used in the template would be called on every page render.
Regards, Andreas