Uploaded image for project: 'Magnolia Templating Essentials'
  1. Magnolia Templating Essentials
  2. MTE-146

Wrong outputFormat resolver lead to wrong image format generation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 2.0.3, 3.0.0
    • 2.0.2
    • imaging

    Description

      Steps to reproduce

      # Follow steps in below link to create the image operation: https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Theme.html#_image_variations

      1. Upload original JPG image
      2. Set the output format to webp

      .. Logs, screenshots, gifs...

      Expected results

      • Output image should be a webp image

      .. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      • A JPG image generated instead

      Workaround

      • No

        Development notes

      • Output format was not correctly resolved in ThemeAwareImageGenerator#90,91. Fix this to have the function work.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsimak Jaroslav Simak
                viet.nguyen Viet Nguyen
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 0.25d
                      0.25d