使用 Magick++ 加载 ICC 配置文件
Loading an ICC profile with Magick++
这是我的代码:
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
您需要重建图像魔术,支持正确的库。在这种情况下,必须使用 LCMS 支持进行重建。
(来源)
相关文章:
- 无法找到/读取配置文件.conf-FileIOException
- 在WSL:configure_file上对config_file的每次调用都失败:配置文件时出现问题
- 一种在C++中读取TXT配置文件的简单方法
- FFMPEG配置文件级别id大小无效
- 配置文件解析器仅返回以前的值
- 我的程序有一个保存配置文件的GUI,如何双击此配置文件以直接加载带有配置数据的GUI?
- Boost program_options将多个配置文件解析结果存储到一个parsed_options中
- Windows 后台服务(系统配置文件)无法使用 C++ 访问 win 10 上的用户 appData 文件夹?
- 我应该如何获取配置文件的绝对路径与 Windows .exe一起发布?
- JPG-如何从ICC配置文件部分APP2读取/提取数据
- 检测到 Conan 配置文件设置与 CMake 之间的编译器版本不匹配
- boost::p rogram_options 配置文件格式
- 如何在Boost::program_options配置文件中为非字符串的自定义选项值类型处理空格
- 如何在 Boost Program_Options 中使用命令行和分层配置文件的选项
- 如何将不可编译的配置文件添加到QT工程中?
- OpenGL不能在核心配置文件中使用glVertexAttrib进行绘制
- 错误 VSP1011:无法获取调试信息.与 /配置文件链接器开关链接
- 解析程序配置文件
- 提升program_option配置文件的不区分大小写的解析
- 使用 Magick++ 加载 ICC 配置文件