Skip to content

Image resizing and watermarking do no take into consideration the relative dimensions of the watermark and watermarked image. #25514

Closed
@janssentwh

Description

@janssentwh

Introduction

In Magento 2.3.3 it is possible to upload watermarks. By doing so your product images are watermarked indeed. But, when uploading product images of different sizes, the watermark's size is altered relative to the product image. These images below better illustrate my point:
Small base product image:
image

Large base product image:
image

Reproduced in Luma 2.3-develop:
image

Preconditions (*)

The issue is reproducible in Magento 2.3.3

Steps to reproduce (*)

  1. Create two products.
  2. Give one product an image of size 400x400.
  3. Give the second product an image of size 1200x1200.
  4. Add a watermark with width 200px.
  5. Refresh image cache.
  6. Generate cached images by visiting the product's product detail page.
  7. Notice that the watermarks are not of equal size.

Expected result (*)

  1. I expect the watermark to take into consideration the relative size of the image, so that the watermark always is the same width and height regardless of the product image.

Actual result (*)

  1. The smaller product image gets a larger watermark, the larger product image gets a smaller watermark.

Metadata

Metadata

Assignees

Labels

Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions