使用Magick ++加载ICC配置文件

时间:2012-05-09 04:38:27

标签: c++ imagemagick magick++ color-profile color-management

这是我的代码:

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

我正在尝试加载ICC文件并调整大小,但我不能。相反,我收到了这个错误:

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

1 个答案:

答案 0 :(得分:1)

您需要重建imagemagick并支持正确的库。在这种情况下,您必须使用LCMS支持进行重建。

source