使用Magick++转换图片格式
安装
以Archlinux环境为例
$ sudo pacman -S libmagick
测试
参考 Magick++
代码 test.cpp
编译
$ c++ `Magick++-config --cxxflags --cppflags --ldflags --libs` test.cpp -o test
运行
$ ./test src.tiff dst.jpg
以Archlinux环境为例
$ sudo pacman -S libmagick
参考 Magick++
代码 test.cpp
编译
$ c++ `Magick++-config --cxxflags --cppflags --ldflags --libs` test.cpp -o test
运行
$ ./test src.tiff dst.jpg