Replies: 1 comment 4 replies
-
Only the tif.Write(tifStream, new TiffWriteDefines
{
PreserveCompression = true,
}); This does require you to call |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have images arriving from a TWAIN scanner, I want to set the bit depth and compression on each page appropriately depending on the number of colors in the image, and save the result as a multi-page TIF.
First I create a MagickImageCollection:
then when an image arrives from the scanner I create a MagickImage from it, get the total number of colors, set the bit depth and compression, and add it to the MagickImageCollection:
and then when the user is finished scanning I write the MagickImageCollection out as a TIF:
The problems that I have are:
Are these bugs or am I not doing this correctly?
(I'm using Magick.NET-Q8-AnyCPU v8.0.1 and Windows 10)
EDIT:
I tried to use this instead but it doesn't change the compression or bit depth at all:
Beta Was this translation helpful? Give feedback.
All reactions