[RESPDAM-70] DAM Focal: error in image resizing when using xHeight Created: 18/Jul/22  Updated: 21/Dec/22  Resolved: 08/Nov/22

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

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Raphael Falvo
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File 800height.jpeg     JPEG File 800width.jpeg    
Issue Links:
Problem/Incident
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:
Team: Services

 Description   

Issue description

When using dam-focal with no width param (only xHeight) the image is cropped

Steps to reproduce

  1. Upload image into dam
  2. Construct image url without area: <MAGNOLIA_BASE_PATH>/.imaging/focalarea/1600x900/dam/jcr:<ASSET_UUID>/<ASSET_FILENAME>
  3. Try giving no height: <MAGNOLIA_BASE_PATH>/.imaging/focalarea/1600x/dam/jcr:<ASSET_UUID>/<ASSET_FILENAME> (delivers a scaled image)
  4. 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


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