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

Format conversion is not possible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 2.1
    • 2.0.6
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              amanzoni Adrien Manzoni
              jayala Jonathan Ayala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Jenkins

                    No builds found.