[MTE-146] Wrong outputFormat resolver lead to wrong image format generation Created: 25/Aug/22  Updated: 06/Apr/23  Resolved: 26/Sep/22

Status: Closed
Project: Magnolia Templating Essentials
Component/s: imaging
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3, 3.0.0

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: variations
Remaining Estimate: Not Specified
Time Spent: 0.25d
Original Estimate: Not Specified

Issue Links:
causality
dependency
depends upon MGNLIMG-248 Wrong PNG image quality calculation Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Support
Sprint: DevX 20
Story Points: 1
Team: DeveloperX

 Description   

Steps to reproduce

# Follow steps in below link to create the image operation: https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Theme.html#_image_variations

  1. Upload original JPG image
  2. Set the output format to webp

.. Logs, screenshots, gifs...

Expected results

  • Output image should be a webp image

.. Justify non-trivial expectations with a link to a doc or a relevant discussion.

Actual results

  • A JPG image generated instead

Workaround

  • No

    Development notes

  • Output format was not correctly resolved in ThemeAwareImageGenerator#90,91. Fix this to have the function work.

Generated at Mon Feb 12 07:41:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.