I am new to ImageMagick so I am trying to learn to use the API with Pascal (Delphi XE) on Windows.
I want to convert a BMP to TIF black and white with LZW compression.
With this command line everything ok:
Code: Select all
>convert c:\temp\scanned.bmp -type bilevel -compress LZW c:\temp\scanned8.tif
Code: Select all
status := MagickReadImage(wand, 'c:\temp\scanned.bmp');
MagickSetImageType(wand, BilevelType);
MagickSetImageCompression(wand, LZWCompression);
status := MagickWriteImages(wand, 'c:\temp\scanned8.tif', MagickTrue);
Well I can see a black image when opening the file with GIMP, if I open the same file with Windows preview the answer is "Preview not available".
Without the line "MagickSetImageCompression()" the file is correctly created, but is big, I want to obtain the compressed one.
Maybe I missed something?
Thanks
Loris
Version for command and for DLL used are the same: 6.7.2-7 Q16