You are correct, Jpg is just an alias for Jpeg. The are both available because a JPEG file can have the extension .jpg or .jpeg.
The SetDefine method now calls a method that removes the define if the value is false. And this means it will use the default value: "Perform optimization only if available memory resources permit it.". I will fix this confusing behavior in the next release and add image.RemoveDefine to mimic old 'functionality'. For now you will have to do this:
p.s. You can add C# behind the start of the code block to give it some colors :)
The SetDefine method now calls a method that removes the define if the value is false. And this means it will use the default value: "Perform optimization only if available memory resources permit it.". I will fix this confusing behavior in the next release and add image.RemoveDefine to mimic old 'functionality'. For now you will have to do this:
MagickImage image = new MagickImage(); image.SetDefine(MagickFormat.Jpeg, "optimize-coding", "false");