It appears as though setting the Format property on a MagickImage object can result in unexpected results in the latest release. When setting the Format property to the value ImageMagick.MagickFormat.Jpeg and inspecting the actual value at runtime it appears to be ImageMagick.MagickFormat.Jp2 (this also throws an exception originating from the Jp2 coder source).
If the Format property is set to ImageMagick.MagickFormat.Jnx, at runtime the value appears to be ImageMagick.MagickFormat.Jpeg.
Could it be possible for this enumeration to be out of sync? When comparing the enumeration found here:
https://magick.codeplex.com/SourceControl/latest#Magick.NET/Enums/MagickFormat.h
With the enumeration included in the build from Nuget:
http://pastebin.com/MDT2Rghr
The values don't appear to quite line up. There are differences between the 2 enumerations.
The build I am testing with came from the latest Nuget package (v7.0.0.4):
https://www.nuget.org/packages/Magick.NET-Q16-AnyCPU/
Comments: ** Comment from web user: bdoss **
If the Format property is set to ImageMagick.MagickFormat.Jnx, at runtime the value appears to be ImageMagick.MagickFormat.Jpeg.
Could it be possible for this enumeration to be out of sync? When comparing the enumeration found here:
https://magick.codeplex.com/SourceControl/latest#Magick.NET/Enums/MagickFormat.h
With the enumeration included in the build from Nuget:
http://pastebin.com/MDT2Rghr
The values don't appear to quite line up. There are differences between the 2 enumerations.
The build I am testing with came from the latest Nuget package (v7.0.0.4):
https://www.nuget.org/packages/Magick.NET-Q16-AnyCPU/
Comments: ** Comment from web user: bdoss **
Yes, you are correct. Apologies!