Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG graphics / PNG files blurred #999

Open
mfeske opened this issue Aug 4, 2015 · 10 comments
Open

SVG graphics / PNG files blurred #999

mfeske opened this issue Aug 4, 2015 · 10 comments

Comments

@mfeske
Copy link

mfeske commented Aug 4, 2015

Hello everybody,
dompdf works really great. However, I have a problem with the integration of graphics. PNG files are very blurred. Is there a way to integrate SVG graphics?
Micha

@bsweeney
Copy link
Member

bsweeney commented Aug 4, 2015

We would be interested in helping figure out the blurry PNG issue. Some of it may be do to extra processing done with the file in 0.6.x. I believe 0.5.x may have inserted the file without modification. It may also be a display issue (whereas print may be fine). Do you have a sample image and a PDF showing the blurry output?

In the meantime there is some SVG support in the upcoming 0.7.0 release. The first beta does not include it, but the second (and hopefully last) beta will. Check out the develop branch. And watch issue #320 for more info (which I see you are already doing).

@mfeske
Copy link
Author

mfeske commented Aug 5, 2015

Hello bsweeney, Thanks for the note. Where do I know the version of the dompdf? I think I had the loaded from the Google Code, as there was with the from the git problems. So far, almost everything has indeed worked. Except for the problem with the image. Can I send you the PDF file by e-mail? How can I now work with the dev git, I put it in a separate path and thought I could now my scripts from / dompdf / on / dompdfgit / change, but that seems to not function.
Another problem which determines not come from dompdf is perhaps also solved with the beta version. When we send the PDF file by e-mail to the fax server breaks the signature. If we will transfer correctly you consign with Hylafax client to the server. Do you have any idea about this?
greeting
Micha and Thanks for your good work!

@bsweeney
Copy link
Member

bsweeney commented Aug 5, 2015

I responded in issue #320 about getting a version with SVG support.

If you don't have anywhere you can share the file I can set up a one-time upload. Go to http://eclecticgeek.com/dompdf/upload/ and use the password ******* to upload your file (PDF, or ZIP if sending multiple files).

I'm not sure about the signature. Maybe the newer release will behave better with your fax client. Some issues with the PDF structure have been fixed over time.

@mfeske
Copy link
Author

mfeske commented Aug 6, 2015

Hello bsweeney, thanks for the support. I've uploaded the file. There have been used four unterscheidliche fonts. But it is just a script and still looks at the a letter of clearance in the Address and in the footer different from the others. In all four files have the same image file that looks a bit strange to me. I also have an SVG version, but do not know how I einbinde this correctly. The current version level of dompdf allows nocht probably not. As I see the dompdf version.

@mfeske
Copy link
Author

mfeske commented Aug 12, 2015

Hello bsweeney, could you at the png file notice something, why this is so blurred? Has anyone any idea how I can perform the update without my existing settings to overwrite? I need the SVG support and improve the PDF structure so that I can pass the PDF documents neatly on the fax client.

@manish-dev-28
Copy link

@mfeske do you got the solution?

@manish-dev-28
Copy link

sample.pdf
sample pdf

@bsweeney
Copy link
Member

@manish-dev-28 can you share one of the images as well as the HTML used to reference it? Might also help to know what version of GD you're using.

@MikeLund
Copy link

MikeLund commented Aug 1, 2017

Are you having trouble reproducing this @bsweeney, or it just not a high prio? This has impacted me for the longest time, even with older versions of dompdf.

GD Support => enabled
GD headers Version => 2.2.3
GD library Version => 2.2.3
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.6.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.2.54
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled
WebP Support => enabled

Here's input image:

out

When modified by dompdf, it becomes like this:
download.pdf
Looks sharp until you zoom in a bit, and then it becomes very obviously wrong:
screen shot 2017-08-01 at 11 11 35

@bsweeney
Copy link
Member

bsweeney commented Aug 7, 2017

@MikeLund it's mostly a matter of finding the time to work on the issue. I suspect it's the extra processing some images types go through. If you switch to a JPG file do you have the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants