Image Quality Really Bad

1,008 views
Skip to first unread message

mystycs

unread,
Aug 5, 2011, 1:33:22 AM8/5/11
to dompdf-dev
I have this site I created and when the images output the image
quality shows up really poor. Here is an example.

http://bit.ly/o2zILh

The image has distortions in some areas and seems very blurry.


Any idea as to how i may fix this? Or how i can up the quality?

I am using dompdf and turning it into jpg

BrianS

unread,
Aug 17, 2011, 12:20:56 PM8/17/11
to dompd...@googlegroups.com
Is this the original image or the one with quality issues. I see the quality issues, but I want to make sure it's not due to something other than DOMPDF.

So what is your process? You create a PDF from a web page using DOMPDF. Then, afterwards you convert that into a PNG?

Note: this post would be more appropriate in the dompdf support group. The purpose of this group is to discuss the internals of dompdf and future development.

mystycs

unread,
Aug 17, 2011, 12:32:26 PM8/17/11
to dompd...@googlegroups.com
Well the images i use are high quality and dont have those fuzzy things once i actually generated the image it produces that. What i have it do is create into a pdf then it creates into a jpg.

Woody Gilk

unread,
Aug 17, 2011, 7:49:51 PM8/17/11
to dompd...@googlegroups.com

This could be caused by using the wrong method of resizing images
using GD, but I have not checked the source to confirm this theory.

Specifically using imagecopyresized() instead of imagecopyresampled()
would cause a more negative impact on a reduction resize.

--
Woody Gilk
http://about.me/shadowhand

>
> --
> You received this message because you are subscribed to the Google Groups
> "dompdf-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dompdf-dev/-/pdbbBRAT7A4J.
> To post to this group, send email to dompd...@googlegroups.com.
> To unsubscribe from this group, send email to
> dompdf-dev+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/dompdf-dev?hl=en.
>

Mark Stein

unread,
Aug 17, 2011, 8:01:42 PM8/17/11
to dompd...@googlegroups.com
Where can i change this setting by any chance what file would it be in?

BrianS

unread,
Aug 17, 2011, 11:58:46 PM8/17/11
to dompd...@googlegroups.com
On Wednesday, August 17, 2011 7:49:51 PM UTC-4, shadowhand wrote:
On Wed, Aug 17, 2011 at 11:32 AM, mystycs <mys...@gmail.com> wrote:
> Well the images i use are high quality and dont have those fuzzy things once
> i actually generated the image it produces that. What i have it do is create
> into a pdf then it creates into a jpg.

This could be caused by using the wrong method of resizing images
using GD, but I have not checked the source to confirm this theory.

Specifically using imagecopyresized() instead of imagecopyresampled()
would cause a more negative impact on a reduction resize.

We don't really use imagecopyresized()/imagecopyresampled(). imagecopy() is used for certain functionality, but I don't think that's the problem. It could be more an issue of going from the source to PDF to JPG.

mystycs, if you view the PDF in a viewer how does the image look? Is there any reason you can't go directly from the source image to the destination?
Reply all
Reply to author
Forward
0 new messages