Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2014

[PATCH] Square image not scaled

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.5
    • None
    • renderer/svg
    • None
    • Operating System: All
      Platform: All
    • 52514

    Description

      When a square image is used and the *-progression-dimension.maximum are equal, then the image fails to scale and it overflows the box limits.

      For example this would reproduce the problem:

      <fo:block>
      <fo:external-graphic src="url(file:///D:/dev/fop/src/fo/300x300.JPG)"
      inline-progression-dimension.maximum="50mm"
      content-width="scale-down-to-fit"
      block-progression-dimension.maximum="50mm"
      content-height="scale-down-to-fit"
      border="solid 5pt red"/>
      </fo:block>

      Workaround:
      Different values for *-p-d.maximum give expected result.
      Even minor changes to the dimension would resolve the issue.
      For example in the previous code if one of the progression-dimension.maximum was set to 50.01mm the image would scale correctly.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            klearchos.klearchou@eurodyn.com Klearchos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment