Skip to content

Cannot get MagickFormatInfo from JFIF file path #2075

Description

@d2phap

Magick.NET version

14.16.0

Environment (Operating system, version and so on)

Windows 11

Description

I use MagickFormatInfo to check if Magick can read the image using its file path.
For JFIF extension, it could not retrieve the MagickFormatInfo, but it can decode the JFIF file normally.

Steps to Reproduce

public static bool CanRead(string srcFilePath)
{
    return MagickFormatInfo.Create(srcFilePath)?.SupportsReading ?? false;
}

CanRead($@"C:\photo.jfif"); // => false
Image

Images

sample_jfif.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions