vhs icon indicating copy to clipboard operation
vhs copied to clipboard

Problems with image cropping since TYPO3v8.6

Open monosize opened this issue 8 years ago • 1 comments

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

monosize avatar Feb 14 '17 13:02 monosize

Maybe solution is to comment line 145: typo3conf\ext\vhs\Classes\ViewHelpers\Media\PictureViewHelper.php

// $src = $this->preprocessSourceUri(rawurldecode($result[3]));

filoucrackeur avatar Feb 15 '17 13:02 filoucrackeur

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.

NamelessCoder avatar Jul 25 '23 12:07 NamelessCoder