Converting any image to EPS-CMYK produces distorted files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converting any image to EPS-CMYK produces distorted file

Post by snibgo »

Try:

Code: Select all

convert TIFF-CMYK_1.tif -units pixelsperinch -density 216 ps3:Test_Out.eps
snibgo's IM pages: im.snibgo.com
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Converting any image to EPS-CMYK produces distorted file

Post by Carter J »

snibgo wrote:Try:

Code: Select all

convert TIFF-CMYK_1.tif -units pixelsperinch -density 216 ps3:Test_Out.eps

Hi,

Above not worked and still showing output resolution as 72

Image: Test_Out.eps
Format: PS (PostScript)
Mime type: application/postscript
Class: DirectClass
Geometry: 297x444+0+0
Resolution: 72x72

Tried with ImageMagick version:
Version: ImageMagick 6.8.8-9 Q16 x64
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting any image to EPS-CMYK produces distorted file

Post by fmw42 »

EPS is a vector file and does not have any resolution/density? That is why it is scalable when displaying or printing. You have to set the density when you read the eps file before printing or converting to other formats.

The embedded raster may have its own density, but the vector shell does not. IM simply assigns it density=72 as a default.

At least this is my understanding of vector files. But I will defer to vector experts on this.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converting any image to EPS-CMYK produces distorted file

Post by dlemstra »

ImageMagick does not store the DPI in the EPS file. The value you are seeing is the default value that is used when reading an EPS file.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Converting any image to EPS-CMYK produces distorted file

Post by Carter J »

dlemstra wrote:ImageMagick does not store the DPI in the EPS file. The value you are seeing is the default value that is used when reading an EPS file.
We are trying to write a EPS file here.

Input File - JPEG 300 dpi
Output File - EPS 300 dpi

Can't we write an EPS file as we are not trying to read the vector data here, instead we are trying to write it.
Post Reply