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

Graphic scaling scale-to-fit Not working as expected

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: image/unqualified
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other
    • External issue ID:
      37815

      Description

      When scaling an external graphic using

      <fo:external-graphic src="file:../graphics/ltcwidth.jpg" width="100%"
      content-width="scale-to-fit" content-height="100%"/>

      So that graphics that are too wide are scaled down but graphics that fit remain
      unscaled it does not operate as expected.

      Graphics that are too wide are invalidated
      Graphics the should not be scaled are streched to fit the width only.

        Attachments

        1. fopbugeg.zip
          96 kB
          Tom
        2. fop.diff
          0.9 kB
          Tom
        3. before.pdf
          79 kB
          Tom
        4. after.pdf
          79 kB
          Tom

          Activity

            People

            • Assignee:
              fop-dev@xmlgraphics.apache.org fop-dev
              Reporter:
              tom@craddock.id.au Tom
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: