Page 1 of 1

Problems with colorspace and conversion with EPS

Posted: 2008-02-25T09:22:35-07:00
by PCPete
I am trying to accept an EPS file for upload. After upload, it should create a low resoltuion RGB JPG of the EPS file, and save it for a web preview of the file for the end user. It should also create a CMYK color profile for the original EPS and save the EPS a different server. This code works on every image format type I supply except EPS, suggestions?

Code: Select all

colorspace = objIM.identify("-format", "%r", imagePath
^ I use that to get my colorspace but for EPS files, it generates errors of
imageMagick EPS Error wrote: ImageMagickObject.MagickImage.1 error '80041771'

identity: 415: Postscript delegate failed `C:/WINDOWS/TEMP/magick-uITE6Hyi': No such file or directory: identity: 350: \\server\website\directory\images\bmc logo.eps: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory':
EDIT: One more thing, the TIFF error is puzzling to me because I have not supplied a TIFF file to it, so far just EPS.

I am using COM object with ASP. Please advise.

thanks,

-Pete

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T10:35:59-07:00
by magick
Your EPS images may in fact be in the EPT format which embeds both a EPS image and TIFF image and your TIFF image is not in a format that the TIFF delegate library can grok. Post a URL to a couple of your EPT images that fail for you so we can download and inspect them for problems.

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T10:48:50-07:00
by PCPete
I will talk to out IT as to where I can place these for your perusal, would this also then cause it to fail when attempting to read the colorspace I assume.

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T11:16:11-07:00
by PCPete
Okay I've sent a PM to you with the FTP information enclosed. Thanks again. FWIW I have updated to the 2/23/08 release as well.

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T12:08:10-07:00
by PCPete
Final update until I hear back or find a solution....

I decided to try it strait from the command line and it works?! It correctly returned just the colorspace as I asked. When done from asp and com object, it has problems with the delegate... Maybe a permissions problem or something with running GhostScript by chance? I ran a -convert -list delegate and it does in fact have the correct path to my GS folder and exe.... I am stumped!

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T12:13:22-07:00
by magick
We identified your image without complaint. Our test was under Windows XP using Ghostscript 8.43 and ImageMagikc 6.3.9. It reported this:

Code: Select all

-> identify -verbose Logo.eps 
Image: Logo.eps
  Format: EPT (Encapsulated PostScript with TIFF preview)
  Class: DirectClass
  Geometry: 1001x347+0+0
  Resolution: 72x72
  Print size: 13.9028x4.81944
  Units: Undefined
  Type: ColorSeparation
  Endianess: Undefined
  Colorspace: CMYK
  Depth: 16/8-bit
  Channel depth:
    Cyan: 8-bit
    Magenta: 4-bit
    Yellow: 4-bit
    Black: 8-bit
  Channel statistics:
    Cyan:
      Min: 0 (0)
      Max: 44 (0.172549)
      Mean: 13.3042 (0.0521733)
      Standard deviation: 19.9034 (0.0780525)
    Magenta:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 77.1976 (0.302736)
      Standard deviation: 115.367 (0.45242)
    Yellow:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 77.1976 (0.302736)
      Standard deviation: 115.367 (0.45242)
    Black:
      Min: 0 (0)
      Max: 23 (0.0901961)
      Mean: 6.9509 (0.0272584)
      Standard deviation: 10.398 (0.0407765)
  Total ink density: 226%
  Histogram:
    236569: (    0,    0,    0,    0) #0000000000000000 black
    100005: (11308,65535,65535, 5911) #2C2CFFFFFFFF1717 cmyk(44,255,255,23)
      3883: ( 2827,17476,17476, 1542) #0B0B444444440606 cmyk(11,68,68,6)
      3102: ( 5911,34952,34952, 3084) #1717888888880C0C cmyk(23,136,136,12)
      2511: ( 8224,48059,48059, 4112) #2020BBBBBBBB1010 cmyk(32,187,187,16)
       152: (  514, 4369, 4369,  257) #0202111111110101 cmyk(2,17,17,1)
       146: ( 2056,13107,13107, 1028) #0808333333330404 cmyk(8,51,51,4)
       133: (10537,61166,61166, 5397) #2929EEEEEEEE1515 cmyk(41,238,238,21)
       128: ( 4369,26214,26214, 2313) #1111666666660909 cmyk(17,102,102,9)
       124: ( 1285, 8738, 8738,  771) #0505222222220303 cmyk(5,34,34,3)
       123: ( 9766,56797,56797, 4883) #2626DDDDDDDD1313 cmyk(38,221,221,19)
       119: ( 8995,52428,52428, 4626) #2323CCCCCCCC1212 cmyk(35,204,204,18)
       114: ( 6682,39321,39321, 3341) #1A1A999999990D0D cmyk(26,153,153,13)
        81: ( 7453,43690,43690, 3855) #1D1DAAAAAAAA0F0F cmyk(29,170,170,15)
        79: ( 3598,21845,21845, 1799) #0E0E555555550707 cmyk(14,85,85,7)
        78: ( 5140,30583,30583, 2570) #1414777777770A0A cmyk(20,119,119,10)
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: cmyk(223,223,223,0)
  Matte color: grey74
  Transparent color: black
  Page geometry: 1001x347+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Undefined
  Orientation: Undefined
  Properties:
    Ps:HiResBoundingBox: 1001x347+0+0
    Ps:Level: Adobe-3.0 EPSF-3.0
    Ps:SpotColor-0: procset Adobe_CoolType_Utility_T42 1.0 0
    Ps:SpotColor-1: procset Adobe_CoolType_Utility_MAKEOCF 1.23 0
    Ps:SpotColor-2: procset Adobe_CoolType_Core 2.31 0
    Ps:SpotColor-3: procset Adobe_AGM_Core 2.0 0
    Ps:SpotColor-4: procset Adobe_AGM_Utils 1.0 0
    Signature: 00223490d58445a8494eb50ccfa89bbdd83ada86082c24f68d7814d15e8f625c
  Artifacts:
    Verbose: true
  Tainted: False
  Filesize: 1.32513mb
  Number pixels: 339.205kb
  Version: ImageMagick 6.3.9 02/25/08 Q16 http://www.imagemagick.org

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T12:14:44-07:00
by PCPete
Try it using the COM object? I can use the command line but it fails when using asp + com object.

-thanks!

Re: Problems with colorspace and conversion with EPS

Posted: 2008-02-25T12:19:19-07:00
by magick
We're Unix/Linux developers and the COM object was a contributed project. You'll need to provide a script and brief instructions how to use it before we can test your EPT image from a COM object.