Any time i convert a 300 dpi pdf file it says that it is only 72 dpi. When i set density to 300 it puts very small edges on my image and the width is 1 pixel larger than it should be. Any clue what could be wrong?
The command i am useing is:
convert -density 300 BMMXSpicy32oz4C.pdf BMMXSpicy32oz4C.jpg
It does the same wether i keep it a pdf or if i change it to jpg.
Thanks in advance for any help on this!
PDF quality when converted
Re: PDF quality when converted
We assure you the density is set in your JPEG image. We follow the JFIF standard that provides for a resolution setting in the image header. However, Adobe ignores the standard and instead looks for an EXIF profile resolution tag. If the EXIF tag does not exist, it assumes 72DPI. Recent versions of ImageMagick updates the EXIF resolution tag if the image has an existing EXIF profile associated with it.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: PDF quality when converted
Which begs the question of adding a Blank EXIF profile (and setting its density/resolution) to a new JPG image.
I supose a EXIF profile could be extracted and edited to only contain minimal set of defaults (say pretending it was an ImageMagick camera). If anyone has a source for such a profile for publication, that would be great.
I supose a EXIF profile could be extracted and edited to only contain minimal set of defaults (say pretending it was an ImageMagick camera). If anyone has a source for such a profile for publication, that would be great.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: PDF quality when converted
Well eventually the dpi gets to 300 when i use the -density 300. But the problem lies in the quality. I would like this to go into print but there are jagged edges on the image. I am thinking that has to do with it not being the right width and height. The jpg that i convert with photoshop is 1 less pix in length and height but is correct. When i convert or even just open a pdf and write it back out it adds an extra pix to the length and height and you can see that there is a mess up in the image. Do you think that this has something to do with the exif profile in the pdf that says that its dpi is 72? And if so could you point me in the direction on how to fix this? I am new to using profiles. Thanks!
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: PDF quality when converted
For quality, use a larger DPI density, then resize using -resample to set the actual density wanted. It is slower but should remove the ragged edge
Code: Select all
convert -density 1200 page.pdf -resample 300 page.jpg
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/