eps to pdf conversion questions...

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Ic3Knight

eps to pdf conversion questions...

Post by Ic3Knight »

I have a folder full of (about 200) .eps files which I need to convert to pdfs.

I have two problems though. When I do this for an individual file (i.e. convert blah.eps blah.pdf) the resolution/quality of the pdf is not very good compared to the .eps file. Is there a way to improve that at all?

Secondly, I'd like to convert all of the files in the folder, but they have individual names (i.e. they are not sequentially numbered or anything), it is vitally important that the new files keep the old names.

Any help would be greatly appreciated, I'm on a bit of a tight schedule with this!!

Cheers

Paul
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: eps to pdf conversion questions...

Post by magick »

Sounds like you want a vector tool. ImageMagick first converts the EPS to an image and the image is saved to PDF.
Ic3Knight

Re: eps to pdf conversion questions...

Post by Ic3Knight »

Is there any way to specify the "quality" of the image before it's converted to pdf?

Also, how about the second part? i.e. how do I batch convert a large number of files with individual names such that they keep their file names and just get a new extension?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: eps to pdf conversion questions...

Post by magick »

Use -density to increase the resolution of the image and therefore perceived quality of the resulting PDF. Here an example that renders at a higher resolution but resizes back to the original image size:
  • convert -density 400 image.eps -resize 25% image.pdf
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: eps to pdf conversion questions...

Post by anthony »

Or to preserve the size of the image in real-world units for a output device (display) of 100dpi

Code: Select all

   convert -density 400 image.eps -resample 100 image.pdf
WARNING: the above rasterizes the image...
See A word about Vector Image formats for more information.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply