Skip to content

Controlling image setting in code (code equivalent to command line -define) #838

Answered by oren-boop
oren-boop asked this question in Help
Discussion options

You must be logged in to vote

I found the answer: to modify this setting you should go over each of the images in the collection and:

foreach (var image in imageCollection)
{
image.Settings.SetDefine(MagickFormat.Tiff, "predictor", "1");
}
this solved the problem for me.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by oren-boop
Comment options

You must be logged in to vote
0 replies
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