Bug 12630 - resizing images
Summary: resizing images
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: images (show other bugs)
Version: 0.20.4
Hardware: PC All
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-13 19:55 UTC by Tim Lebedkov
Modified: 2012-04-01 06:47 UTC (History)
0 users



Attachments
Quick patch to scale SVG propertionatly images to full size of area (3.51 KB, patch)
2002-10-21 10:00 UTC, Frugal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2002-09-13 19:55:28 UTC
gif, jpeg and svg images cannot be resized using
fo:external-graphic width and content-width attributes
Comment 1 J.Pietschmann 2002-09-26 22:23:23 UTC
Specifying width works for all of the named formats. Content-width is not yet
implemented.
Comment 2 Frugal 2002-10-09 10:32:28 UTC
Gif anf JPEG are scaled correctly, but with SVG the image is contained in an
area of the requested size, but the SVG content is not scaled. I.e.

<fo:external-graphic src="file:boxes.svg"/>
<fo:external-graphic src="file:boxes.svg" width="2in" />
<fo:external-graphic src="file:boxes.svg" width="3in" />
<fo:external-graphic src="file:boxes.svg" width="50mm" />
<fo:external-graphic src="file:../../graphics/xml_feather_transparent.gif"/>
<fo:external-graphic src="file:../../graphics/xml_feather_transparent.gif"
width="2in" />
<fo:external-graphic src="file:../../graphics/xml_feather_transparent.gif"
width="3in" />
<fo:external-graphic src="file:../../graphics/xml_feather_transparent.gif"
width="50mm" />

The GIFs are all scaled correctly, but the SVG all apper the same size, with
lots of white space around them. This was tested by adding these lines to the
svg/external.fo example
Comment 3 Frugal 2002-10-21 10:00:25 UTC
Created attachment 3547 [details]
Quick patch to scale SVG propertionatly images to full size of area
Comment 4 Andreas L. Delmelle 2007-02-18 03:03:18 UTC
Bugzilla cleanup:

FOP 0.93/Trunk should fully support content-height / content-width, with values of "scale-to-fit", and 
possible non-uniform scaling.
Comment 5 Glenn Adams 2012-04-01 06:47:29 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed