Skip to content

Insert rendition images to the content from media gallery instead of original images #1504

Closed
magento/magento2
#29677
@sivaschenko

Description

@sivaschenko

Story

#1286

Precoditions

  1. Magento2 2.4-develop with ASI 2.1-develop is installed
  2. Enhanced Media Gallery is enabled in Stores Configuration -> Advanced -> System -> Media Gallery fieldset
  3. Rendition width and height are set in Stores Configuration -> Advanced -> System -> Media Gallery Renditions fieldset

Steps to reproduce:

  1. Upload an image that is higher/wider than the configured rendition width/height to the media gallery
  2. Insert the image to the content

Expected result

  • The rendition of the image instead of the original image should be inserted (from .renditions directory)
  • The rendition height/width should be reduced not to exceed configured rendition width and height
  • The rendition of the image should keep the original image aspect ratio
  • Used in information should be updated accordingly and displayed in the Image Details panel of media gallery

Metadata

Metadata

Assignees

Labels

BackendFrontend/UIPriority: P2Should be fixed as early as possibleProgress: doneSeverity: S2Affects non-critical data or functionality and forces users to employ a workaround

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions