[reportlab-users] jpg image quality in pdf's

Britt Hibbert bhibbert at citrus.textdriven.com
Wed Nov 2 05:08:15 EST 2005

Hello again,

In the process of doing some more experiments, I have realized my problem.
When I open the document in Adobe Acrobat 5, the images seem fuzzy. When I
open the document in Adobe Reader 6, the images are beautiful. My pdf's
generated with reportlab were opening  with Acrobat 5, while the pdf's I
generated through Word and the Adobe plugin were opening with Adobe Reader
6, thus the difference I was seeing. The jpg images inserted through
reportlab print beautifully as well.

I apologize for not checking this out more thoroughly before posting on the
list. It was obviously my ignorance of the situation that caused the "issue"
that I saw.  I've said this before on this list and I'll say it again that
with the reportlab toolkit everything that I've needed to do in creating a
pdf report has been simple and straightforward, and at the same time
amazingly flexible, and the pdf's look great . So thanks again to reportlab
for this awesome tool.

Thanks for your help

Britt Hibbert

 ----- Original Message ----- 
From: "Robin Becker" <robin at reportlab.com>
To: "Support list for users of Reportlab software"
<reportlab-users at reportlab.com>
Sent: Wednesday, November 02, 2005 12:36 AM
Subject: Re: [reportlab-users] jpg image quality in pdf's

> Britt Hibbert wrote:
> > Hi,
> >
> >
> > I am having troubles importing jpg images into a reportlab-generated
pdf. Specifically, the quality of the images in the pdf is not acceptable to
my client. In particular, it seems to be the text within these images that
breaks up considerably when placed in the document.  With the same image
placed into a  WinWord document , the text does not break up. The fonts used
within the saved image are TrueType fonts. However, when I use these
TrueType fonts directly within the pdf document using the Paragraph
flowable, they render beautifully.
> >
> >
> >  I have imported the image using the Image flowable. I've tried with no
set width and height, as well as with every scale from .1 of an inch up to
the actual size of the the image (scaling both the width and  height values
so that they remain in proportion to each other) .  I have searched the
archives of this list, and come accross some similar reports to image
quality issues, but found no references to definite solutions to this
> >
> > Can anyone tell me why this image quality issue comes up, and if there's
anything I can do about it? I am able to use any type of image that I need
to if it helps. However, I have run my tests with both jpg and png images
and the results seem to be similar.
> >
> >
> > thanks in advance for any help
> >
> > Britt Hibbert
> >
> .....
> The intention of the reportlab toolkit image handling is to use jpeg
> natively so either we have a bug or the problem lies in the way PDF
> handles the jpeg. It would help if you could send me a sample jpeg that
> illustrates the problem. I can then check whether we're doing the right
> thing. It is certainly true that the font used in the image should have
> no bearing on the outcome; we treat it as a binary blob and don't care
> what's inside.
> -- 
> Robin Becker
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users

More information about the reportlab-users mailing list