Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. InPlaceMetaDataWriter.GetQuery vs InPlaceMetaDataWriter.Title

InPlaceMetaDataWriter.GetQuery vs InPlaceMetaDataWriter.Title

Scheduled Pinned Locked Moved WCF and WF
visual-studioquestion
2 Posts 1 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jim Warburton
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • J Jim Warburton

      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

      J Offline
      J Offline
      Jim Warburton
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups