InPlaceMetaDataWriter.GetQuery vs InPlaceMetaDataWriter.Title
-
I am using the InPlaceMetaDataWriter to set metadata in exif in a jpeg. I have found if I use:
InPlaceBitmapMetadataWriter metadata = output.Frames[0].CreateInPlaceBitmapMetadataWriter();
metadata.RemoveQuery("/app1/ifd/{uint=270}");
metadata.SetQuery("/app1/ifd/{uint=270}", "New Title");and then look at the metadata using:
Console.WriteLine("Title : {0})", metadata.GetQuery("/app1/ifd/{uint=270}"));
Console.WriteLine("Title : {0})", metadata.Title);I get Title : New Title Title : Old Title Shouldn't the RemoveQuery remove the 'Old Title' and allow a new one to be placed? I understand you can have more than one tag with the same number but why is this happening?
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
-
I am using the InPlaceMetaDataWriter to set metadata in exif in a jpeg. I have found if I use:
InPlaceBitmapMetadataWriter metadata = output.Frames[0].CreateInPlaceBitmapMetadataWriter();
metadata.RemoveQuery("/app1/ifd/{uint=270}");
metadata.SetQuery("/app1/ifd/{uint=270}", "New Title");and then look at the metadata using:
Console.WriteLine("Title : {0})", metadata.GetQuery("/app1/ifd/{uint=270}"));
Console.WriteLine("Title : {0})", metadata.Title);I get Title : New Title Title : Old Title Shouldn't the RemoveQuery remove the 'Old Title' and allow a new one to be placed? I understand you can have more than one tag with the same number but why is this happening?
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
After a fair amount of looking around, InPlaceMetaDataWriter.Title accesses the IPTC Document Title while the InPlaceMetaDataWriter.GetQuery("/app1/ifd/{uint=270}")) looks at the ImageDescription. Two separate items.
this thing looks like it was written by an epileptic ferret Dave Kreskowiak