Skip to content

AddThumbnail(byte[] data) to ExifProfile #605

Open
@gerwintmg

Description

@gerwintmg

Is your feature request related to a problem? Please describe

I'm using Magick.net to update Exif metadata, but could not find a way, to replace the thumbnail image.

Describe the solution you'd like

I would like to be able to replace the thumbnail, by using magick.net

Describe alternatives you've considered

I have tried to make an extension method but did not find a way to add the thumbnail image data.

ImageMagick.ExifProfile exifProfile = image.GetExifProfile();
exifProfile = (null == exifProfile) ? new ImageMagick.ExifProfile() : exifProfile;
exifProfile.RemoveThumbnail();

exifProfile.SetValue(ExifTag.JPEGInterchangeFormat, ""); // ThumbnailOffset 
exifProfile.SetValue(ExifTag.JPEGInterchangeFormatLength, ""); // ThumbnailLength

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions