Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-286

Can't find ImageWriter for webp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 4.0.0, 3.5.8
    • 3.5.6
    • None
    • None

    Description

      Steps to reproduce

      1.  Configure any theme's image variation operation to generate webp image from attached source. Please note that this issue only happen to this kind of image, not happen to all image types. aaron.anderson-40hsf.com_WEB.jpeg
      2.  Below is example configuration when we change the "travel-demo-theme.yaml":
        imaging:
          class: info.magnolia.templating.imaging.VariationAwareImagingSupport
          variations:
            "1600":
              class: info.magnolia.templating.imaging.variation.SimpleResizeVariation
              width: 1600
            "1366-2":
              class: info.magnolia.templating.imaging.variation.SimpleResizeVariation
              width: 1366
            ### configure webp image generator here
            "1366":
              class: info.magnolia.templating.imaging.variation.ImageOperationProvidingVariation
              imageOperation:
                class: info.magnolia.imaging.operations.ImageOperationChain
                outputFormat:
                  formatName: webp
                parameterProviderFactory:
                  class: info.magnolia.imaging.parameters.BinaryNodeParameterProviderFactory
                operations:
                  load:
                    class: info.magnolia.imaging.operations.load.FromBinaryNode
                  resize:
                    class: info.magnolia.imaging.operations.cropresize.BoundedResize
                    maxWidth: 948
                    maxHeight: 948
        ...
        
      3. Upload image to Asset app
      4. Access its variant with proper link such as:
        http://host:port/contextPath/.imaging/mte/travel-demo-theme/1366/dam/folder/aaron.anderson-40hsf.com_WEB.jpg/jcr:content/aaron.anderson-40hsf.com_WEB.webp
        

      .. Logs, screenshots, gifs...

      Expected results

      • System generate a correct webp image

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

      Actual results

      • Error happen and no webp image could be generated (see error log here error.log )

      Workaround

      • Do not use webp image format, change to "jpg" or other outputFormat which work.

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                oanh.thai Oanh Thai Hoang
                viet.nguyen Viet Nguyen
                DeveloperX
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 2d 0.5h
                      2d 0.5h