I'm trying to convert from pdf to tiff (with Group4 compression) using ImageMagick command line.
However when i do "convert test.pdf -compress Group4 -density 300 test.tiff" I get a very low quality tiff image
The test.pdf do have the right quality!
Is there a reason why I get such low quality?
Getting low quality :(
-
- Posts: 2
- Joined: 2012-09-11T12:24:02-07:00
- Authentication code: 67789
Re: Getting low quality :(
Try adding a -density before the pdf:
I do not know if you need the -density 300 before the test.tiff
Code: Select all
convert -density 300 test.pdf -compress Group4 -density 300 test.tiff
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Getting low quality :(
You don't need it before writing the tiff. But it does not hurt either.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 2
- Joined: 2012-09-11T12:24:02-07:00
- Authentication code: 67789
Re: Getting low quality :(
That worked, thank you I taught I'd -density, but seemingly it worked now
The file size however is now larger than the maximum for this application
The file size however is now larger than the maximum for this application
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Getting low quality :(
victorzimmer wrote:That worked, thank you I taught I'd -density, but seemingly it worked now
The file size however is now larger than the maximum for this application
Make the density smaller.
OR:
You can use supersampling to get higher quality and reduce the image dimensions.
try
convert -density 288 test.pdf -resize 25% -compress Group4 test.tiff
nominal density is 72
density=288=72*4
resize by 1/4=25%
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Getting low quality :(
NOTE this will result in an incorrect density! -resize ignored density. So after a resize you do need to reset teh density (if that is important to you).fmw42 wrote:You can use supersampling to get higher quality and reduce the image dimensions.
convert -density 288 test.pdf -resize 25% -compress Group4 test.tiff
Alternativally resize using density using -resample
convert -density 288 test.pdf -resample 72 -compress Group4 test.tiff
See IM Example, Image resizing, Resample
http://www.imagemagick.org/Usage/resize/#resample
And PS and PDF supersizing
http://www.imagemagick.org/Usage/text/#postscript
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/