MagickReadSettings's size is not working

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Posts: 21
Joined: 2019-10-29T07:03:33-07:00
Authentication code: 1152

MagickReadSettings's size is not working

Post by VasyaIvonov2 »


I use Magick.NET (Magick.NET-Q16-x64, Version= and I have the next code:

Code: Select all

            MagickReadSettings rs = new MagickReadSettings()
                Width = 200,
                Height = 200

            using (MagickImage image = new MagickImage("SomeBigTiff.tif", rs)) //Tiff's real size is 8688*5472
                var w = image.Width; //w = 8688 but I expected 200
I expected to get resized image, but I get original image. Is It a bug or I misunderstand Width and Height parameters in MagickReadSettings?

User avatar
Posts: 1625
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789

Re: MagickReadSettings's size is not working

Post by dlemstra »

These settings only work for certain formats. They do nothing when you read a tiff image.
.NET + ImageMagick = Magick.NET, @MagickNET, Donate