Getting "System.NotSupportedException: mluc" since 7.14

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: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

Getting "System.NotSupportedException: mluc" since 7.14

Post by usemagi »

Code: Select all

var fi = new FileInfo(@"C:\Users\....jpg");
var img = new MagickImage(fi);
var a = img.GetColorProfile();
On this image: ... sp=sharing

More stacktrace:

Code: Select all

   at ImageMagick.ColorProfileReader.ReadTagValue(UInt32 length)
   at ImageMagick.ColorProfileReader.ReadTag()
   at ImageMagick.ColorProfileReader.ReadTagTable()
   at ImageMagick.ColorProfileReader.Read(Byte[] data)
   at ImageMagick.ColorProfile.Initialize()
   at ImageMagick.MagickImage.GetColorProfile(String name)
   at ImageMagick.MagickImage.GetColorProfile()

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

Re: Getting "System.NotSupportedException: mluc" since 7.14

Post by dlemstra »

Thanks for reporting this. The latest release includes some extra code that parses metadata from the color profile. But I should not throw an exception in that spot. A new release will be published very soon to resolve this issue.
.NET + ImageMagick = Magick.NET, @MagickNET, Donate