Fop
  1. Fop
  2. FOP-2014

[PATCH] Square image not scaled

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: svg
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      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.

      1. resources.zip
        4 kB
        Klearchos
      2. fop.patch
        0.6 kB
        Luis Bernardo

        Activity

        Hide
        Klearchos added a comment -

        Attachment resources.zip has been added with description: It contains 2 images and the fo file in order to reproduce the problem

        Show
        Klearchos added a comment - Attachment resources.zip has been added with description: It contains 2 images and the fo file in order to reproduce the problem
        Hide
        Glenn Adams added a comment -

        resetting P2 open bugs to P3 pending further review

        Show
        Glenn Adams added a comment - resetting P2 open bugs to P3 pending further review
        Hide
        Glenn Adams added a comment -

        please provide output PDF file showing problem output

        Show
        Glenn Adams added a comment - please provide output PDF file showing problem output
        Hide
        Luis Bernardo added a comment -

        Attachment fop.patch has been added with description: patch that fixes issue

        Show
        Luis Bernardo added a comment - Attachment fop.patch has been added with description: patch that fixes issue
        Hide
        Luis Bernardo added a comment -

        added PATCH tag

        Show
        Luis Bernardo added a comment - added PATCH tag
        Show
        Glenn Adams added a comment - http://svn.apache.org/viewvc?rev=1326053&view=rev
        Hide
        Glenn Adams added a comment -

        thanks luis!

        Show
        Glenn Adams added a comment - thanks luis!
        Hide
        Glenn Adams added a comment -

        (In reply to comment #7)
        > thanks luis!

        and klearchos for the initial bug filing!

        Show
        Glenn Adams added a comment - (In reply to comment #7) > thanks luis! and klearchos for the initial bug filing!

          People

          • Assignee:
            fop-dev
            Reporter:
            Klearchos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development