But in 7.2.0, it is not, instead it looks Compression property exists.
However it is read only.
Then, how to copy single page tiff file with changing compression method?
I had do it before like the following:
Code: Select all
MagickReadSettings settings = new MagickReadSettings();
settings.SetDefine(MagickFormat.Tif, "ignore-layers", true);
using (var image = new MagickImage(File.ReadAllBytes(srcPath), settings))
{
image.Format = MagickFormat.Tif;
image.CompressionMethod = CompressionMethod.NoCompression;
image.Write(dstPath);
}