iptc

Writing image metadata (EXIF/TIFF/IPTC) to image file in OS X

核能气质少年 提交于 2019-11-30 09:51:45
I am creating a photo editing app, and so far I've managed to read the metadata from image files successfully (after getting an answer to this question: Reading Camera data from EXIF while opening NSImage on OS X ). source = CGImageSourceCreateWithURL((__bridge CFURLRef)url, NULL); NSDictionary *props = (__bridge_transfer NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); This copies all the metadata of the image file to a dictionary, and it works faily well. However, I couldn't find out how to write this metadata back to a newly created NSImage (or to an image file). Here is

IPTC .NET read/write c# library

夙愿已清 提交于 2019-11-30 09:25:14
I am looking for some library to read/write IPTC metadata from Jpg files. Open source or paid, doesn't matter. It should work with .NET 3.5 and c#. Does anybody know such a library? I googled but haven't found anything. Vladimir * http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.aspx using System; using System.IO; using System.Linq; using System.Windows.Media.Imaging; namespace wictest { class Program { static void Main(string[] args) { var stream = new FileStream("1.jpg", FileMode.Open, FileAccess.Read); var decoder = new JpegBitmapDecoder(stream, BitmapCreateOptions.None,

Writing image metadata (EXIF/TIFF/IPTC) to image file in OS X

风流意气都作罢 提交于 2019-11-29 14:53:41
问题 I am creating a photo editing app, and so far I've managed to read the metadata from image files successfully (after getting an answer to this question: Reading Camera data from EXIF while opening NSImage on OS X). source = CGImageSourceCreateWithURL((__bridge CFURLRef)url, NULL); NSDictionary *props = (__bridge_transfer NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); This copies all the metadata of the image file to a dictionary, and it works faily well. However, I