headless
headless copied to clipboard
GalleryDataProcessor renders wrongly scaled pictures when using cropVariants
We tried using a cropVariant to crop a picture to a 1:1 format. The FileDataProcessor grabs all the images, crops them (after adding cropVariant to processingConfiguration) and saves the pictures. Then the GalleryFileProcessor collects the images again, gets the original image and scales that to the size of the cropped image - but it won't crop the image, even when given the cropVariant as well.
For our project we decided to remove the GalleryDataProcessor from all content elements, but we still got the feeling that it's not behaving as it should ;)
Hi @kabarakh on which version of ext:headless you can reproduce this? on the latest? or some older version?
Hi @twoldanski we are using 3.2.2 via composer install
I can confirm the issue. It exists since v3.2.0 and is still present in v.3.2.2. v3.1.2 works as expected in this point.
Steps to Reproduce
- Insert a first content element "Images Only"
image
- Insert a landscape format image.
- Save
- Insert a second content element "Images Only"
image
- Select a 1:1 cropping area
- Save
Expected behavior
Result with v3.1.2:
Actual behavior
Result with > v3.2.x: