DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5001>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5001 content-width and content-height ignored? Summary: content-width and content-height ignored? Product: Fop Version: all Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: svg AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am trying to scale an SVG image, by using external-graphic with the content-width and content-height attributes set. Unfortunately whether I use "scale-to-fit" (to fit the width/height attributes), or an explicit length, the graphic itself is not scaled. I was not 100% sure that content-width and content-height should scale the image, so I looked at the "XHTML to XSL formatting objects" example XSLT file at http://www.antennahouse.com/axf11sampleEN.htm. >From there it looks like I'm generating the right XSL, and FOP is not scaling the images as it should. I have seen the example of a scaled image in the FOP documentation. It uses an instream-foreign-object SVG, which references the external SVG using "svg:image" and explicitly set width and height. This does rescale the image, but unfortunately there is no way to have the image size determined from the layout context. For example, XSL sizes such as "80%" to show an image with 80% of the width of the current reference port do not work. I am stuck working around this problem by using explicit sizes, and the instream-foreign-object method for rescaling the image. It would be nice if content-width and content-height were honoured. cheers, -- Jamie --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]