Does anyone know why this image is so blurry?

I did a convert from pdf to png and it turned out like that. Before deleting imagemagick and it's entire toolset from software-center most of my image programs were displaying like this image. Now for the most part it's just blurry, though a couple still display like that such as gimp. I am running in xfce maybe it's to do with the distribution enviornment. Main issue is the absurd blurriness. I reinstalled all additional packages that were available for imagemagick in the software-center

I use convert *.pdf *.png & mogrify -format png *.pdf to convert

Now on the other hand if I converted the file to djvu and converted that to a tif. The images have no problem converting. More so it does not generate an oversized tif file of around 25mb compared to 3mb with djvu which is super clear & no blurriness.

  • 2
    Can you provide the original one so I can work on it. – Luis Alvarado Mar 30 '13 at 15:54
  • I have experimented with converting PDF to different formats in the past and I have found Inkscape's CLI to offer the most accurate results. See my answer here. – Glutanimate Mar 31 '13 at 7:26
  • When you open (view) your file, ensure your zoom is 100 %; else you will see distortions. @Seth who says you can't read it at 100 % ? – nutty about natty Oct 12 '16 at 9:02

Try using the density variable.

convert -density 400 *.pdf *.png
  • 1
    Not sure why this would be downvoted... The trick to avoiding blurry images definitely seems to be getting the right density setting. – Brian Z May 2 '15 at 4:15
  • I'm not the downvoter but maybe because the syntax is wrong and won't work if you have more than one png file in your directory. Use "convert -density 400 file.pdf file.png" for a single file or "mogrify -density 400 -format png *.pdf" if you want to convert multiple pdf files. – Glenn Randers-Pehrson Oct 17 '16 at 0:57

I'll plagiarize the answer I just posted to a related question.

It can be very complicated to get good pdf output from convert. Try img2pdf instead. From the readme:

Lossless conversion of images to PDF without unnecessarily re-encoding JPEG and JPEG2000 files. Thus, no loss of quality and no unnecessary large output file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.