Page 1 of 1

Will pay $$Convert an eps vector graphic to a rasterized eps

Posted: 2014-02-19T20:34:29-07:00
by wlocker
I am trying to convert a jpg to a rasterized EPS and add an AdobeRGB1998,icc profile. I have tried -compress none , taint etc... and have not been succesful. I will pay $$$$ for a solution this week. Contact at wlocker@gannett.com

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T00:04:37-07:00
by snibgo
The forum for consulting is viewforum.php?f=24

The command would be something like:

Code: Select all

convert in.jpg -profile AbobeRGB1998.icc out.eps
However, this doesn't embed the profile. I don't know if this is a limitation of eps format or IM.

You can convert the image to the required profile:

Code: Select all

convert in.jpg -profile sRGB.icc -profile AbobeRGB1998.icc out.eps
This converts the pixel values. Again, it doesn't embed the profile.

If the icc files aren't in your current directory, you need to supply the full paths.

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T08:30:40-07:00
by wlocker
The profile I got , but the issue is that when it create the eps it is a vector (non - rasterized and it needs to be rasterized

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T08:50:45-07:00
by snibgo
Is it vector? I don't know much about EPS, but if I do ...

Code: Select all

convert rose: x.eps
... and view x.eps in a text editor, I see a load of raster data.

What is your source file? If it is a vector format that IM passes directly to the EPS, so you may need to explicitly rasterise it first, eg:

Code: Select all

convert infile miff:-| convert - x.eps

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T10:30:27-07:00
by wlocker
not sure what miff?
convert infile miff:-| convert - x.eps

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T10:40:41-07:00
by wlocker
this did not work

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T10:41:51-07:00
by snibgo
Miff is ImageMagick's private file format. This shouldn't be needed if your image is raster. In the OP you said the input was jpeg. This is raster. IM won't vectorise it. Why do you think the EPS "needs to be rasterized"?

What version IM are you using, on what platform? You can put your input jpeg and output eps somewhere like dropbox.com and paste the links here.

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T10:47:37-07:00
by fmw42
Like snibgo, I tried and was able to get a raster jpg inside an eps vector shell, but the profile did not show up. I am not sure if eps supports profiles on raster data inside a vector shell. At least it does not show in the IM verbose info. My temporary computer does not have EXIFTOOL, but perhaps snibgo can verify if that shows the profile.

I did this

Code: Select all

convert zelda3.jpg -strip -profile /fullpath2/AdobeRGB1998.icc tmp.jpg
That shows the profile embedded. Then I did

Code: Select all

convert tmp.jpg /fullpath2/AdobeRGB1998.icc tmp.eps
and get this information
Properties:
date:create: 2014-02-20T09:49:54-08:00
date:modify: 2014-02-20T09:49:54-08:00
ps:HiResBoundingBox: 128x128-0-0
ps:Level: Adobe-3.0 EPSF-3.0

signature: 90d632ed7e19d9fe1c869f4301431d254a0b26da59add4032932c61cca25b461

NOTE: If I open zelda3.jpg in PS and assign the AdobeRGB profile and save as eps, then it shows in the IM verbose information. So it would appear that either IM is just not showing that (but can be verified with EXIFTOOL) or there is a bug in IM. But I am on an older version of IM at 6.8.0.5 temporarily and cannot check with the current version.

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T11:34:31-07:00
by wlocker
so if you open the eps in photoshop, does it prompt for you to rasterize?

Re: Will pay $$Convert an eps vector graphic to a rasterized

Posted: 2014-02-20T12:09:35-07:00
by fmw42
wlocker wrote:so if you open the eps in photoshop, does it prompt for you to rasterize?
The one I created in PS does not. The one I created in IM does.

The PS created file has more meta data and has tiff arguments:

Code: Select all

  Properties:
    date:create: 2014-02-20T11:13:11-08:00
    date:modify: 2014-02-20T11:13:11-08:00
    dc:format: image/epsf
    exif:ColorSpace: 4294967295
    exif:PixelXDimension: 128
    exif:PixelYDimension: 128
    photoshop:History: 
    ps:HiResBoundingBox: 128x128+0+0
    ps:Level: Adobe-3.0 EPSF-3.0
    signature: 1a0161ee342c39cbb4675b6eddc5dba866cceb7dcc654e0a65226d2f8ecd2437
    tiff:XResolution: 72/1
    tiff:YResolution: 72/1
    xap:CreateDate: 2014-02-20T11:06:51-08:00
    xap:CreatorTool: Adobe Photoshop CS Macintosh
    xap:MetadataDate: 2014-02-20T11:06:51-08:00
    xap:ModifyDate: 2014-02-20T11:06:51-08:00
    xapMM:DocumentID: adobe:docid:photoshop:4e1a1c0d-9bb1-11e3-814c-e1084bb317d7
  Profiles:
    Profile-8bim: 9484 bytes
    Profile-exif: 302 bytes
    Profile-icc: 560 bytes
      Description: Adobe RGB (1998)
      Manufacturer: Adobe RGB (1998)
      Model: Adobe RGB (1998)
      Copyright: Copyright 1999 Adobe Systems Incorporated
    Profile-xmp: 6117 bytes

The IM created image (even adding EPSF:tmp.eps) does not include all that (tiff and exif pixel-related meta data). Perhaps PS is converting to tiff before wrapping in eps, so I tried that in IM with no success.

Code: Select all

 Properties:
    date:create: 2014-02-20T11:14:58-08:00
    date:modify: 2014-02-20T11:14:58-08:00
    ps:HiResBoundingBox: 128x128-0-0
    ps:Level: Adobe-3.0 EPSF-3.0

    signature: ce64264e0fbfa3270637de082b7b1f57cffb45ec4624327adc9f7009d7c00689
I suspect, IM is not writing enough meta data for PS to recognize it is raster already. PS often reads its own special meta data for things like that and the IM dimensions are being ignored.

But note I am testing with IM 6.8.0.5 (not current), so it needs to be checked with a current version of IM.

This probably should be redirected to the Developers or Bugs forum to get a proper test and answer.