Reading & writing ICC profiles
Posted: 2006-08-01T13:59:59-07:00
I need a way of writing the ICC profile to a ICM file. I did find a posting, here
http://studio.imagemagick.org/discussio ... dac61f4db6
with C++ code that I adapted as follows.
But the magick() function throws an exception: "Unrecognized image format: "ICC:""
Then I tried this test:
but I'm getting an unhandled exception, Magick::ErrorMissingDelegate.
I do have this DLL, CORE_lcms_.dll; is this the LCMS delegate library?
I guess I've basically got two questions:
1) Is "ICC" a valid argument for the magick() function?
2) Is CORE_lcms_.dll the LCMS delegate library?
If anyone can help with these questions I'd be really grateful.
Thanks,
sanderton
http://studio.imagemagick.org/discussio ... dac61f4db6
with C++ code that I adapted as follows.
Code: Select all
Magick::Blob blobICC;
blobICC = m_pIMImage->iccColorProfile();
if ( blobICC.length() > 0 )
{
Magick::Image ICCProfile( blobICC );
ICCProfile.magick( "ICC" );
ICCProfile.write( (LPCTSTR) csICMFileName );
}
Then I tried this test:
Code: Select all
Magick::Image ICCProfile_test;
ICCProfile_test.read( "C:\\lcms\\profiles\\sRGB.icm" );
ICCProfile_test.magick( "ICC" );
ICCProfile_test.write( "C:\\testing\\sRGB_test.icm" );
I do have this DLL, CORE_lcms_.dll; is this the LCMS delegate library?
I guess I've basically got two questions:
1) Is "ICC" a valid argument for the magick() function?
2) Is CORE_lcms_.dll the LCMS delegate library?
If anyone can help with these questions I'd be really grateful.
Thanks,
sanderton