Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20602

Server-side image resizing does not preserver image ratio in case of outscaling

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Reproduction steps:

      Expected

      • requesting 100x300 returns 66x200
      • requesting 300x100 returns 200x600
      • requesting 300x400 returns 150x200

      (the request ratio is preserved to fit the max dimensions of the image)

      Actual

      • requesting 100x300 returns 100x200
      • requesting 300x100 returns 200x100
      • requesting 300x400 returns 200x200
        (basically the outscaled dimension is replaced by the original one without considering the ratio)

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: