This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
bobs@sagehill.net
 
 
----- 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">
                  <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 lgirard@caltech.edu

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]