如何将.eps文件转换为高质量的1024x1024 .jpg? [英] How to convert a .eps file to a high quality 1024x1024 .jpg?
问题描述
我有一个.eps文件,我可以在Photoshop中看到它,它具有非常高的分辨率,锐利的边缘等,甚至大于1024x1024。
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.
使用ImageMagick我想将此.eps转换为1024x1024 .jpg,分辨率非常高。
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
我必须使用哪些ImageMagick参数才能生成.jpg为1024x1024且图像质量高,图像清晰?
这里是我们找到的一些XMP数据,可能是因为 -size
而导致它无法调整大小:
here's some XMP data we found, perhaps what is causing it to not be resized with -size
:
推荐答案
对于矢量图形,ImageMagick的渲染分辨率和输出大小相互独立。
For vector graphics, ImageMagick has both a render resolution and an output size that are independent of each other.
尝试类似
convert -density 300 image.eps -resize 1024x1024 image.jpg
这将使您的eps为300dpi。如果300 *宽度> 1024,那么它将是锐利的。如果你渲染得太高,你会浪费大量的内存来绘制一个非常高分辨率的图形,只能再次对其进行下采样。我目前不知道在一个IM命令中以正确的分辨率渲染它的好方法。
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.
这篇关于如何将.eps文件转换为高质量的1024x1024 .jpg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!