How to Add JPEG EXIF TAGS (url,keywords..)
Posted: 2019-07-14T11:03:00-07:00
Hi
I'm using Magick.NET-Q16-AnyCPU for mvc core2 .
I am trying to add exif tags to jpeg images, copyright and author and url and keyword but not working except copyright
My Code :
thank you
I'm using Magick.NET-Q16-AnyCPU for mvc core2 .
I am trying to add exif tags to jpeg images, copyright and author and url and keyword but not working except copyright
My Code :
Code: Select all
using (MagickImage image = new MagickImage(media.Name))
{
var profile = new ExifProfile();
profile.SetValue(ExifTag.Copyright, Title);
profile.SetValue(ExifTag.Artist, "laleh");
profile.SetValue(ExifTag.XPKeywords, Encoding.UTF32.GetBytes("one two three"));
profile.SetValue(ExifTag.XPAuthor, Encoding.UTF32.GetBytes("one"));
image.AddProfile(profile);
image.Write( media.Name);
}
thank you