This project has moved. For the latest updates, please go here.

3fr no decode delegate

Nov 14, 2016 at 7:05 PM
Hello,

I'm encountering this problem where I'm giving the MagickImage constructor a byte stream + a setting, telling it the format is to be ThreeFR. However, the constructor throws an exception with "no decode delegate for this image format `THREEFR' @ error/blob.c/BlobToImage/355"

If I give the constructor the full image path, it decodes it just fine.

    settings = new MagickReadSettings()
    {
        Format = MagickFormat.ThreeFr
    };
    using (var fs = new FileStream(path, FileMode.Open, FileAccess.Read))
    {
        try
        {
            collection = new MagickImageCollection(fs, settings); // exception thrown here
        }
        catch (MagickException e)
        {
            Console.WriteLine(e.Message);
    }
Coordinator
Nov 14, 2016 at 8:18 PM
It appears that you have found a bug. The 3FR format is represented as ThreeFR in the MagickFormat enumeration because an enum cannot start with a number. But when the format is set this will not be set back to 3FR. I just pushed a fix for this to the GIT repository and I will try to publish a new release to resolve that this week. If this is urgent you might want to use my development build instead.
Nov 14, 2016 at 8:53 PM
Not in a rush, I'll wait for your new release. Thanks for looking into it!