Next in thread → Next in month →

Re: [docbook-apps] images scaling problem for print output

From
Rebastian Laiser
Date
2011-01-14T14:08:31+00:00
ID
Thread
Re: [docbook-apps] images scaling problem for print output
Hi Peppo, thanks for your help!
It was not the solution I was looking for in the beginning but finally it worked. :)I was hoping that I only needed to change a couple of parameters in my customization layer. 
Now, I played around with the size of my images and made them all as wide as my page is and then they don't get scaled anymore (as suggested in 1.). 
Changing dpi made the quality acceptable. Thanks again and have a nice weekend, 
Sebastian

On Thu, Jan 13, 2011 at 4:56 PM, Giuseppe Bonelli <> wrote:

On Thu, Jan 13, 2011 at 3:31 PM, Sebastian Kaiser

<> wrote:

> -> My problem, on the other hand, is that all  images are stretched to page

> width, no matter if they have the size of a stamp or a telephone.

> That does not seem to be a "dots per inch problem" because all images then

> should vary in size by the same factor, right?

Hi Sebastian,

I routinely produce complex pdf for print full of images from DB and I

do not have any scaling issues. Here is what I do (hope this will help

you).

1. all images (raster or vector) for print are pdf sized in mm to the

right dimensions depending on the page size. Obviously during the pdf

generation from raster images (using GIMP or Photoshop) Ihave to chose

the right mm dimensions to guarantee the quality I want based on the

DPI of the sources.

2. in the DB source I use the following markup:

<figure float="none">

     <title>a title</title>

     <mediaobject>

          <imageobject role="print">

                <imagedata fileref="foo.pdf" format="PDF"/>

           </imageobject>

      </mediaobject>

</figure>

3. If needed I can use <imagedata fileref="foo.pdf" format="PDF"

scale="xx"/> and the image gets scaled correctly (note that xx is NOT

followed by %).

As you can see, everything is pretty standard and works perfectly. I

have just made a quick test on one of my db file using a PNG instead

of a PDF and the scaling works as expected also in this case.

What FO processor are you using? (I use Antenna House)

What version of DB fo xslt are you using /overriding? (I use a

customization layer overriding 1.75.2 from DB 4.5 sources)

cheers,

__peppo

-- 
Sebastian Kaiser

Askozia - Intuitive Telephony
http://www.askozia.com

Salzdahlumer Strasse 46/48 

D-38302 Wolfenbüttel 
Germany
Tel: +49 (0)5331 900 989 202
Fax: +49 (0)5331 900 989 199
Next in thread → Next in month →