dlemstra / dlemstra/Magick.NET

AddThumbnail(byte[] data) to ExifProfile

Open
#605 3 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
C#
Stars
4k
Forks
451
Avg merge
11h 55m
Merged PRs (30d)
3

Description

### 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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.