I try to achieve a tiff with an embedded JPEG compressed image.
Using convert.exe the following works:
Code: Select all
convert 1.jpg -compress JPEG 1.tiff
Code: Select all
Image img("1.jpg");
img.compressType(JPEGCompression);
img.write("1.tiff");
Unhandled exception at 0x74ecb727 in test.exe: Microsoft C++ exception: Magick::ErrorCoder at memory location 0x002ffc2c..
It points to Line 103 in file Thread.cpp
Is this a bug or is something wrong with my code?