Re: [xep-support] scale-when-image-is-too-big

From: David Tolpin (dvd@renderx.com)
Date: Mon Oct 14 2002 - 09:29:39 PDT


> For each graphic, my stylesheet reads the graphic width and height
> from this xml-file and compares it with the print area width and
> height. If the image exceeds the print area, the stylesheet computes
> a scale factor for width and height and uses the lesser of these
> values for both content-width and content-height.
>

Excellent solution, indeed.

However, I would like to attract your and other users' attention to the fact
that acrobat (or any other pdf/ps interpreter) is usually a poor quality
performer when it comes to scaling raster images.

Perceived quality of the picture will inevitably decrease; the image
will come out blurred, sharp edges will loose their sharpness.

A much better approach would be to scale images to their final sizes
using a graphics manulation program, such as Adobe Photoshop or GIMP.
content-height/content-width are really mostly useful for drafts or
vector images (in version 2, SVG is supported for both PDF and PS,
EPS is for PS, in version 3, SVG supported is temporarily dropped
but will be included in a following release; EPS is supported for PS
and PDF inclusion into PDF will also be there soon).

Raster images should not be scaled using XSL FO when print quality
is expected.

David Tolpin
RenderX
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:28 PST