vhs
vhs copied to clipboard
Problems with image cropping since TYPO3v8.6
All ViewHelpers based on FluidTYPO3\Vhs\ViewHelpers\Media\Image\AbstractImageInfoViewHelper have problems to work with cropped images - if the cropping was done in v8.6
more info see here : https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Documentation/Changelog/8.6/Feature-75880-ImplementMultipleCroppingVariantsInImageManipulationTool.rst
Maybe solution is to comment line 145: typo3conf\ext\vhs\Classes\ViewHelpers\Media\PictureViewHelper.php
// $src = $this->preprocessSourceUri(rawurldecode($result[3]));
ViewHelpers using this base class will only operate on the original image by design - the intention is to provide these ViewHelpers as a way to check image dimensions and file type before processing the image, e.g. to scale down or crop the image only if it exceeds a certain size or (re-)compress the image if it is for example a PNG or BMP.
To fetch image info for a processed file, process the file first with a ViewHelper like f:uri.image and pass the output as src to the image info ViewHelper.