Skip to content
Discussion options

You must be logged in to vote

You should not call SetCompression but set the compression of the first image in the collection instead.

using (var images = new MagickImageCollection())
{
    images.Read("Lorem ipsum dolor sit amet.pdf", new MagickReadSettings
    {
        Density = new Density(150),
    });

    images[0].Settings.Compression = CompressionMethod.LZW;

    images.Write("test.tif");
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Tom-EllisEVENTS
Comment options

Comment options

You must be logged in to vote
2 replies
@Tom-EllisEVENTS
Comment options

@dlemstra
Comment options

Answer selected by Tom-EllisEVENTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants