I have a bunch of PDF images that I am trying to convert to jpg and resize....I am doing to this to create thumbnail images for a website, so I want them to be fairly small....
If I do a "convert image.pdf test.jpg " it seems to work fine but the file sizes are still quite large....
Additionally I am doign this conversion to thousands of images and I found MOGRIFY ....if I do "mogrify -format jpg *.pdf" I get a conversion with just the first pages of the PDF and things look good....although the image size is sometimes larger than the PDF itself.
I then tried to resize the image upon MOGRIFY.. "MOGRIFY -format jpg -density 96 -resize 50% *.pdf"
WHEN i do this last one with the density and resize...my resulting JPG images are mostly black and all weird looking....dont know why....
I think some of the PDF images might be off different sizes, but not thinking this should matter.
Anyone have any thoughts? Again looking to take a MUlti-page PDF and convert its first page to JPG to be used as a Thumbnail in a web page...
Thanks
resize issues
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: resize issues
PDF files are vector format. JPG is raster. If the PDF contains text or vector drawings, a JPG that shows the text just as clearly will be larger.
snibgo's IM pages: im.snibgo.com
Re: resize issues
Yea thats my issue then cause most of the images are maps and such from a GIS system.
SO what are my other options? Can I export to something else besides jpg and get the desired result I am looking for?
SO what are my other options? Can I export to something else besides jpg and get the desired result I am looking for?
Re: resize issues
maybe png will work?
Re: resize issues
tried PNG and it seems to work great.....would there be anything else out there that might convert smaller than png?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: resize issues
Probably not, but you might try TIFF with various compression options. If PNG is good for you but you want it smaller, get hold of program pngcrush.
snibgo's IM pages: im.snibgo.com
Re: resize issues
Thanks....very appreciated.