Bug 4415 - scaling="uniform" does not work on images...
Summary: scaling="uniform" does not work on images...
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: images (show other bugs)
Version: 0.17
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-25 05:32 UTC by Christian Beer
Modified: 2012-04-01 07:09 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Beer 2001-10-25 05:32:55 UTC
I want to fit an image of any size into a specified space (for example "10mm" 
x "10mm"). But the aspect ratio is never checked - the image is always scaled 
in both directions to fit in the whole space.
Comment 1 Christian Beer 2001-10-25 07:17:59 UTC
I forgot to give my sample-code:
<fo:external-graphic src="img.jpg" width="10mm" height="10mm"/>

If the image has a dimension of 100px x 120px then it is stretched!?

Also giving scaling="uniform" didn't help!
Comment 2 Tim Lebedkov 2002-09-11 12:31:23 UTC
I have the same problem. Additional JPEG and GIF images scaled wrong and appear
bigger as corresponding bmp-images.
Comment 3 Tim Lebedkov 2002-09-11 12:33:22 UTC
Some additional information:
I use 0.20.4 on win2k
Comment 4 Andreas L. Delmelle 2007-02-11 11:18:53 UTC
Bugzilla cleanup:
Behaviour is fixed in FOP trunk.
Comment 5 Glenn Adams 2012-04-01 07:09:12 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed