[RESPDAM-57] Format conversion is not possible Created: 01/Feb/22  Updated: 16/Mar/22  Resolved: 02/Feb/22

Status: Closed
Project: DAM Focal
Component/s: None
Affects Version/s: 2.0.6
Fix Version/s: 2.1

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Adrien Manzoni
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* 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:
Sprint: Sprint 13

 Description   

Steps to reproduce

  1. Configure focalpoint generator so the format name is webp (use attached configuration)
  2. Request a jpg file: http://localhost:8080/magnolia-webapp/.imaging/focalpoint/426x240/dam/jcr:ab2c4750-f59a-4b45-87f3-ec27de99d1a5/kitchen.jpg
  3. Change the file extension to webp: http://localhost:8080/magnolia-webapp/.imaging/focalpoint/426x240/dam/jcr:ab2c4750-f59a-4b45-87f3-ec27de99d1a5/kitchen.webp

Expected results

The returned file is webp format as configured.

Actual results

The returned file format is the same than the requested file (.jpg) in steps 2 and 3 regardless the extension.

Development notes

info.magnolia.dam.focal.imaging.DamFocalOperationChain<P> is calling info.magnolia.dam.focal.imaging.AbstractDamFocalParameter.getFormatName(), which is only considering the format of the jcr:content node instead of the output format configuration.



 Comments   
Comment by Pierre Sandrin [ 16/Mar/22 ]

@Jonathan Ayala
I cannot see any configuration attached. I was wondering how to set the output format to webp. Is it in the imaging module configuration (/modules/imaging/config/generators/focalpoint/outputFormat) or in the dam-focal-common configuration (/modules/dam-focal-common/config/variations)?

Our goal is to always get webp images no matter what uploaded image format is.

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