Hi,

Sorry if this is OT but I saw a post in the archive that might help 
with a problem I have. I should also point out I am no expert.

I am using ImageMagick (PerlMagick) and want to identify the ICC 
profile of a file so I can convert it. It is my understanding that I 
need to know what profile I am coming from to ensure an accurate 
conversion.

The only way I know of identifying the ICC profile is via the IM 
command line syntax `convert file.tif profile.icm`. This outputs a 
file to disk. I then have to compare this file against others to seen 
if any match. As you can imagine this is not ideal and I suspect that 
there is a better methods within lcms that I could harness.

Bob Friesenhahn mentioned a GetImageProfile() method. I can't see it 
documented under the API section for IM and imagine it's not 
available to perlmagick. However I see there are lot of methods 
within lcms shared library.

So, all else failing, is it possible to unpack/extract from the an 
ICC profile it's name? Is there some universal location in all 
profiles that might help me at least narrow down the search for what 
profile I am looking for? Ideally I would like to continue to do this 
in perl, does anyone know of any perl(ish) ways to get to the final 
destination?

TIA.
Dp.





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to