简体   繁体   中英

Loading an ICC profile with Magick++

Here is my code:

Blob rgbBlob;
ifstream LoadFile;
Image profile_test("sRGB.icc");
profile_test.write(&rgbBlob);
jpg_src.profile("ICC",rgbBlob);

I'm trying to load an ICC file and resize but I can't. Instead, I'm getting this error:

terminate called after throwing an instance of 'Magick::WarningMissingDelegate'
  what():  Magick: DelegateLibrarySupportNotBuiltIn `5orig.jpg' (LCMS) @ warning
/profile.c/ProfileImage/5743
      1 [sig] scale_image 2052 open_stackdumpfile: Dumping stack trace to scale_
image.exe.stackdump

You need to rebuild imagemagick with support for the correct libraries. In this case, you must rebuild with LCMS support.

( source )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM