Next in thread →
Next in month →
Re: [docbook-apps] sizing images
Title: Re: [docbook-apps] sizing images Thank you! So in order to render an image at 4 inches wide, we would use: <mediaobject id="figure1" xreflabel="Figure1"> <imageobject> <imagedata entityref="fig1" align="center" width="4in." /> </imageobject> <textobject><phrase> Types of alternative splicing figure 1</phrase></textobject> &fig1legend; </mediaobject> What size should the image be (in inches, for example)? The same size as we want it, in order to maintain resolution? Thanks! Lisa At 9:21 AM -0700 5/4/05, Bob Stayton wrote: Hello Lisa, My experience is that the current version of FOP has limited support for image sizing properties. I have found that using the DocBook width attribute with a number and length unit (not percent) is the only thing that works. With other XSLFO processors you have more options. Bob Stayton Sagehill Enterprises DocBook Consulting ----- Original Message ----- From: Lisa Girard To: Cc: Sent: Wednesday, May 04, 2005 5:40 AM Subject: [docbook-apps] sizing images Dear List Members, We are trying to size JPEG, PNG and EPS images for HTML and PDF. We would like the images to appear approx. 4 or 6 inches wide. The software we are using is: Mac OSX, Docbook XSL 1.67.2, Docbook XML 4.4CR2, Saxon 6.5.3, FOP 0.20.5,Firefox 1.0.3, and Adobe Acrobat Reader 7.0. Our current markup, where we are placing a figure is <mediaobject id="figure1" xreflabel="Figure1"> <imageobject> <imagedata entityref="fig1" align="center"/> </imageobject> <textobject><phrase> Types of alternative splicing figure 1</phrase></textobject> &fig1legend; </mediaobject> Could you tell me how we might modify this markup to size the figures? One possibility I came across would be to modify the existing above markup with scale fit, width to look like: <mediaobject id="figure1" xreflabel="Figure1"> <imageobject> <imagedata entityref="fig1" align="center" scalefit="1", width="100%" contentheight="100%"/> </imageobject> <textobject><phrase> Types of alternative splicing figure 1</phrase></textobject> &fig1legend; </mediaobject> and then we would create the image files at the size we would like them to be. Thank you in advance, Lisa Girard -- ******************************************************************** Lisa R. Girard, Ph.D. Editor, WormBook WormBase and Division of Biology California Institute of Technology 1200 E. Calif Blvd., Pasadena CA 91125 email
Next in thread →
Next in month →