-
Bug
-
Resolution: Fixed
-
Neutral
-
2.0.6
-
None
-
None
-
Empty show more show less
-
Sprint 13
Steps to reproduce
- Configure focalpoint generator so the format name is webp (use attached configuration)
- Request a jpg file: http://localhost:8080/magnolia-webapp/.imaging/focalpoint/426x240/dam/jcr:ab2c4750-f59a-4b45-87f3-ec27de99d1a5/kitchen.jpg
- 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.
Acceptance criteria