Skip to content

Exif data unable to be read #1891

@gbreen12

Description

@gbreen12

Magick.NET version

Magick.NET-Q8-OpenMP-x64 14.3.0

Environment (Operating system, version and so on)

Windows 11

Description

When initially loading a particular image, the image.GetExifProfile() returns a profile correctly. However, if I write that image to a memory stream and then reload it, the image2.GetExifProfile() returns null. This is a reversion from 14.2, which works as expected.

Steps to Reproduce

var fileStream = File.OpenRead(@"C:\cover-original.jpg");
using var image1 = new MagickImage(fileStream);
var exifProfile1 = image1.GetExifProfile(); // Gets the exif profile

var outputStream = new MemoryStream();
image1.Write(outputStream);
outputStream.Seek(0, SeekOrigin.Begin);

using var image2 = new MagickImage(outputStream);
var exifProfile2 = image2.GetExifProfile(); // Returns null

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