Making tif file with jpeg compression
Posted: 2017-11-24T09:18:52-07:00
Hi,
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:
The file is created, but it is not compressed and is really large (which is why I want to compress it).
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!
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!