plan2net / webp

Create a WebP copy for images (TYPO3 CMS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Support VHS image viewhelpers

Ceremony64 opened this issue · comments

On my website, I am using the image viewhelpers provided by the VHS extension, as they provide more control over dynamically sizing pictures (like the max and min values). Unfortunately, using these skips the creation of their webp counterpart.

It would be great if these could be covered by your webp extension as well.

I currently see no way to do that, there are no hooks, no events, nothing to know beforehand that the view helper is modifying the image.
They mess around with the images at a very low level (executing convert on the server) inside this extension:

https://github.com/FluidTYPO3/vhs/blob/c962d0dce84ad9b1cb2091ba716befab98be34ec/Classes/ViewHelpers/Media/Image/AbstractImageViewHelper.php#L133