OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] sizing images

Title: sizing images
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 -----
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">
                   <imagedata entityref="fig1" align="center"/>
<textobject><phrase> Types of alternative splicing figure 1</phrase></textobject>

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">
                   <imagedata entityref="fig1" align="center"
scalefit="1", width="100%" contentheight="100%"/>
<textobject><phrase> Types of alternative splicing figure
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 lgirard@caltech.edu

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]