Page 1 of 1

How to Add JPEG EXIF TAGS (url,keywords..)

Posted: 2019-07-14T11:03:00-07:00
by laleh
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 :

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);
                }



Image
thank you

Re: How to Add JPEG EXIF TAGS (url,keywords..)

Posted: 2019-07-14T11:09:37-07:00
by fmw42
Imagemagick does not currently allow for adding or modifying EXIF data. Use Exiftool.