Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6867

Image variants without either a width or height are not scaled properly

    XMLWordPrintable

Details

    Description

      When an image is created with a variant which has a width or height of 0, the image is saved as the original.

      For example when the thumbnail is configured as follows: height: 60, upscaling: false, width: 0. The created thumbnail will have the same sizes as the original image.

      It seems that the calculateResizeRatio of the ScaleImageOperation isn't returning the correct ratio in this case.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dvandiepen Dirkjan van Diepen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: