headless icon indicating copy to clipboard operation
headless copied to clipboard

GalleryDataProcessor renders wrongly scaled pictures when using cropVariants

Open kabarakh opened this issue 2 years ago • 1 comments

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 ;)

kabarakh avatar Dec 12 '22 17:12 kabarakh

Hi @kabarakh on which version of ext:headless you can reproduce this? on the latest? or some older version?

twoldanski avatar Dec 13 '22 15:12 twoldanski

Hi @twoldanski we are using 3.2.2 via composer install

kabarakh avatar Dec 14 '22 12:12 kabarakh

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

  1. Insert a first content element "Images Only" image
  2. Insert a landscape format image.
  3. Save
  4. Insert a second content element "Images Only" image
  5. Select a 1:1 cropping area
  6. Save

Expected behavior

Result with v3.1.2:

headless-3 1

Actual behavior

Result with > v3.2.x:

headless-3 2

ducrot avatar Feb 15 '23 08:02 ducrot