I am using SVGs for all images. That was the only way that I could
ensure print quality images with no dithering. For example the documents
that I am generating contain a lot of pie charts, and these circles look
great when using SVG but JPEG and PNG just didn't cut it.

Steve Albin 

-----Original Message-----
From: Tom Peters [mailto:[EMAIL PROTECTED] On Behalf Of A.R. (Tom)
Peters
Sent: Thursday, January 13, 2005 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: How to fix image degradation in FOP-generated PDF

On Wed, 12 Jan 2005, Smilgiewicz, Gene [CPB] wrote:

> Using  fop-0.20.5 on a Sun/Solaris box, I am able to generate a PDF
containing graphics referenced by the <fo:external-graphic> tag.  The
PDF gets generated (sloooooowly) but the GIF and JPG images look
dithered, not nearly as sharp a the source images.  Images degrade when
they are the exact size of the rendered output and when they are scaled
down, whether height/width are specified or not.
>
> My group has double and triple checked that we are using all relevant
attributes (for example:  <fo:external-graphic content-type="image/gif"
content-width="80px" content-height="30px"
src="/default/main/Intranet/MST/WORKAREA/MST/graphics/logo_pop.gif"/> ).
We've double and triple-checked the image files to be sure that the
images are sharp (they are).
>
> Can anyone suggest something we have overlooked that may be causing
the image degradation?  THANKS!

I get similar situations depending on how I process.

Using fop to generate a PDF (default) from a .fo file works for JPEG.
Using fop to generate a PS file from a .fo file works too.
Using ghostscript (gs) to rework the first PDF file to a PDF file makes
the image chunky.
Using ps2pdf to change the PS file to PDF makes the image chunky.

Maybe not directly relevant to your situation, but I suggest to look if
generating PS makes something printable with the proper resolution.

--
#>!$!%(@^%#%*(&([EMAIL 
PROTECTED]@^$##*#@&(%)@**$!(&!^(#((#&%!)%*@)(&$($$%(@#)&*!^$
)[EMAIL PROTECTED]@)

        Tom Peters


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to