Skip to content

Media gallery thumbnails stretched when image is horizontal ratio #23877

@NickdeK

Description

@NickdeK

When using images with a horizontal ratio, and prevent the image generation from adding white space to the images, the thumbnail images in the gallery come out pixelated on the product page.

Preconditions (*)

  1. Magento 2.3.2
  2. <var name="product_image_white_borders">0</var> in the view.xml of a theme (including the luma theme)

Steps to reproduce (*)

  1. Have a product with images that have a horizontal ratio (the width is bigger than the height)
  2. Make sure that product_image_white_borders is set to 0 in the view.xml of the activated theme
  3. If cache images are already created remove the pub/media/catalog/product/cache/ folder.

Expected result (*)

  1. Thumbnail images to be shown crisp and sharp

Actual result (*)

  1. Thumbnail images are stretched and therefor pixelated (see screenshot below)

Screenshot 2019-07-25 at 11 43 20

Metadata

Metadata

Assignees

Labels

Area: Design/FrontendComponent: CatalogFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions