Media image style unexpected

Created on 21 May 2025, 18 days ago

Hi,
for a Commerce site (theme Belgrade) I've set some Media Image Style.

For the product page (for example), where I wish to use your module as formatter, the I've setted an Image Style of 480x480 pixel ("product 480x480") so an original image of 960x720 pixel is scaled to 480x360 pixel and an image of 720x960 pixel is scaled to 360x480 pixel.

Then I 've configured the formatter like this (mainly for test):

  • Image Style for Large Devices: product 480x480
  • Image Style for Medium Devices: product 480x480
  • Image Style for Small Devices: product 480x480
  • Thumbnail Image Style: cart 80x80
  • Thumbnail Border Style: round
  • Allow Thumbnail Overlap: Yes
  • Thumbnail Overlap Threshold: 5
  • Mouse Zoom: Enabled
  • Default Zoom Scale: 2
  • Show Magnifier: No
  • Image class:
  • Image Wrapper Class:
  • Container Max Width: 480 px
  • Thumbnail Width: 80 px
  • Thumbnail border color code: #007bff

But your formatter take the minor dimension (360 pixel) to resize it at 480 pixel, while crop the other side to have an image of 480x480 pixel, with loss of data.

I don't have the possibility to change all images in a square shape.

I think the right way is to preserve the Image Style and center the image in the carousel.

Thanks

Stefano

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇮🇹Italy stecalle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024