Details
-
Bug
-
Resolution: Not an issue
-
Neutral
-
None
-
2.3
-
None
-
None
Description
Issue description
When using dam-focal with no width param (only xHeight) the image is cropped
Steps to reproduce
- Upload image into dam
- Construct image url without area: <MAGNOLIA_BASE_PATH>/.imaging/focalarea/1600x900/dam/jcr:<ASSET_UUID>/<ASSET_FILENAME>
- Try giving no height: <MAGNOLIA_BASE_PATH>/.imaging/focalarea/1600x/dam/jcr:<ASSET_UUID>/<ASSET_FILENAME> (delivers a scaled image)
- Try giving no width: <MAGNOLIA_BASE_PATH>/.imaging/focalarea/x900/dam/jcr:<ASSET_UUID>/<ASSET_FILENAME> (image is cropped)
Expected results
The image is properly scaled
Actual results
The image is cropped
Workaround
N/A
Development notes
When dam-focal is used with only width param (Widthx), it works as expected. E.g, for this call: .imaging/focalarea/800x/dam/jcr:08c17349-65dd-4a5c-a3b9-5287221c9fe4/christin-hume-Hcfwew744z4-unsplash.jpg the image dam-focal returns is 800width.jpeg![]()
When dam-focal is used with only height param (xHeight), it crops the image. E.g, for this call: .imaging/focalarea/x800/dam/jcr:08c17349-65dd-4a5c-a3b9-5287221c9fe4/christin-hume-Hcfwew744z4-unsplash.jpg the image dam-focal returns is 800height.jpeg![]()
Checklists
Acceptance criteria