dlemstra / dlemstra/Magick.NET
AddThumbnail(byte[] data) to ExifProfile
- 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
Assessment
This issue has not been assessed yet.