This may be a simple task, but I can't find a solution for it in Magick.NET
I have an image and I want to compress it with JPEG compression and add it into a TIF file. This is my code:
Code: Select all
MagickImage mgckImgTif = new MagickImage(new Bitmap(firstImageFromScanner));
mgckImgTif.CompressionMethod = CompressionMethod.JPEG;
mgckImgTif.Format = MagickFormat.Tif;
mgckImgTif.Write(convertedMs);
I've found that in ImageMagick you need to explicitly call the compress method, but I couldn't find it's equivalent in Magick.NET
Is there a way, to make it work?
Thanks in advance!