How to change tiff compression method in 7.2.0?
Posted: 2017-12-03T21:29:07-07:00
There was a CompressionMethod property in MagickImage 7.1.0.
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:
Best Wishes,
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);
}