List Info

Thread: Re: When is -colorspace used?




Re: When is -colorspace used?
user name
2005-06-08 14:14:45
From: Anthony Thyssen <anthonygriffith.edu.au>
> 
> | > If your cmyk image has an ICM profile, then you
can use:
> | > convert cmyk.tiff -profile AdobeRGB1998.icm
rgb.tiff
> | > 
> | > If your cmyk image doesn't have an ICM profile,
then you can
> | > use:  convert cmyk.tiff -profile CMYK.icm
-profile 
> | > AdobeRGB1998.icm rgb.tiff
> | 
> | Given the above approach, is there a _faster_ way
than "identify 
> | -verbose" to detect the presence of an embedded
icc profile?
> | 
> 
> Grep with an appropriate search string should do the
job 
> 
> A 'file' 'magic' pattern could also do it, but I doubt 
> someone has written the 'magic' pattern it needs to
look for.  
> 
> I doubt you could find somethng faster than these
methods 
> unless you write it yourself!  Of course they are not a
very 
> nice ways, and requires internal knowledge of the image
format.

Actually I _have_ written my own methods for JPEG and TIFF.
They are pretty
straight-forward if you are only trying to detect and don't
need profile
info. EPS is more complicated due to the fact that the
profile can be
embedded in the preview image (which could be a PICT, JPEG
or TIFF --
depending on platform, etc.) and/or in the page description
itself. But you
know all this. ;-} In any event, had I qualified my question
"within
ImageMagick", the short answer would have been
"no".

Thanks for your response.

Michael Ashton

_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )