Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By ThomasCZ

Thread: Adding metadata to file

  1. #1
    ThomasCZ is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Jul 2016
    Posts
    1
    Reputation
    0

    Post Adding metadata to file

    Hello,

    can I somehow add metadata to a file?

    I'm not familiar with it. All I can do is to get the date and time the picture was taken:

    1 System.Text.Encoding.ASCII.GetString(imageFile.Get PropertyItem(36867).Value)


    But I need to add to the file following attributes:

    1 ProjectionType: "equirectangular"

    2 UsePanoramaViewer: "True"

    3 CroppedAreaImageWidthPixels: "12345"

    4 CroppedAreaImageHeightPixels: "12345"

    5 FullPanoWidthPixels: "12345"

    6 FullPanoHeightPixels: "12345"

    7 CroppedAreaLeftPixels: "0"

    8 CroppedAreaTopPixels: "0"



    I created a simple program to export panoramas and I need to Facebook take it as 360 pictures. When I added the metadata using software ExifTool, it worked, but I need to get it work through the code. I tried class ExifWorks, but unsuccessfully. I am a complete amateur, I'm very happy for the help. Thanks
    nishashrivas93 likes this.

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,776
    Reputation
    1703
    Not surprisingly, Google is your friend:

    https://www.google.com.au/search?q=v...D6Xu8weBhLTgDg

    I've never done what you're trying to do but, if I needed to, that's the search that I'd be doing first.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •