Skip to content

EXIF Orientation data not loading #1809

@salexander6

Description

@salexander6

Magick.NET version

14.5.0

Environment (Operating system, version and so on)

Windows 11 Home, version 24H2, OS build 26100.3194

Description

I’m seeing a small percentage of images with EXIF Orientation data that isn’t loading.

When I use exiftool (13.24) to inspect the image I see

> exiftool .\sample.jpg -g -G
[EXIF] Orientation : Rotate 90 CW

When I view the same image in Windows File Explorer I see the Orientation data is being used.

Image

But when I load the image using Magick.net the Orientation data is not accessible.

Steps to Reproduce

using var image = new MagickImage(@"C:\temp\sample.jpg");
var exifProfileFromImage = image.GetExifProfile();
$"EXIF: {exifProfileFromImage}".Dump();
$"Dimensions: {image.Width}x{image.Height}".Dump();

// EXIF: (null)
// Dimensions: 3072x4080

I'll also include the exiftool output for 27 images that reproduce this issue, in case it helps.

bad-images-exif.txt

Images

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions