Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert a .eps file to a high quality 1024x1024 .jpg?

Tags:

imagemagick

I have a .eps file that I can look at in Photoshop, and it has a very high resolution, sharp edges, etc. at even larger than 1024x1024.

With ImageMagick I want to convert this .eps to a 1024x1024 .jpg with very high resolution.

However, with the following command, the image is very blurry:

convert -resize "1024x1024" -colorspace RGB -flatten test.eps test.jpg  

What ImageMagick parameters do I have to use so that the resulting .jpg is 1024x1024 and a high quality, sharp image?

here's some XMP data we found, perhaps what is causing it to not be resized with -size:

enter image description here

like image 415
Edward Tanguay Avatar asked Sep 28 '11 13:09

Edward Tanguay


People also ask

Is EPS the same as JPG?

On the web, because of load time, you generally want to use smaller images such as JPG or PNG. Best use = images and photographs for high quality print. An EPS file is a vector file of a graphic, text or illustration. Because it is vector it can easily be resized to any size it needs to be.

What is .EPS file?

What is an EPS file? EPS is a vector file format often required for professional and high-quality image printing. PostScript printers and image setters typically use EPS to produce vast, detailed images — such as billboard advertising, large posters, and attention-grabbing marketing collateral.


2 Answers

For vector graphics, ImageMagick has both a render resolution and an output size that are independent of each other.

Try something like

convert -density 300 image.eps -resize 1024x1024 image.jpg 

Which will render your eps at 300dpi. If 300 * width > 1024, then it will be sharp. If you render it too high though, you waste a lot of memory drawing a really high-res graphic only to down sample it again. I don't currently know of a good way to render it at the "right" resolution in one IM command.

The order of the arguments matters! The -density X argument needs to go before image.eps because you want to affect the resolution that the input file is rendered at.

This is not super obvious in the manpage for convert, but is hinted at:

SYNOPSIS

convert [input-option] input-file [output-option] output-file

like image 165
erjiang Avatar answered Sep 22 '22 05:09

erjiang


Maybe you should try it with -quality 100 -size "1024x1024", because resize often gives results that are ugly to view.

like image 38
Stephan Avatar answered Sep 23 '22 05:09

Stephan