Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-1242

Image rescaling with maxwidth and maxheight disrespects aspect ratio

    XporterXMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release 5.1.0, Release 5.1.0-j6, Release 5.1.1, Release 5.1.1-j6
    • Release 5.4.0
    • None
    • R5.4.0 Sprint 3
    • OK

    Description

      When using maxwidth and maxheight, the exported image will have the indicated width and height, instead of respecting the aspect ratio and rescale to the first max value.

      ${Images[n].Image|maxwidth=350|maxheight=500}
      

      If it's wanted to rescale without respecting the aspect ratio, a new notation should be used, as:

      ${Images[n].Image|width=300|height=300}
      

      Attachments

        Issue Links

          Activity

            People

              pamp Paulo Pereira
              mfda mfda
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3 days Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 1 hour, 45 minutes
                  3d 1h 45m