Uploaded image for project: 'DAM Focal'
  1. DAM Focal
  2. RESPDAM-70

DAM Focal: error in image resizing when using xHeight

    XMLWordPrintable

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

      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

      Checklists

        Acceptance criteria

        Attachments

          1. 800height.jpeg
            800height.jpeg
            385 kB
          2. 800width.jpeg
            800width.jpeg
            237 kB

          Activity

            People

              rfalvo Raphael Falvo
              ccantalapiedra Carlos Cantalapiedra
              Services
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD