Adding metadata to file

ThomasCZ

New member
Joined
Jul 3, 2016
Messages
1
Programming Experience
1-3
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:

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


But I need to add to the file following attributes:

1ProjectionType: "equirectangular"

2UsePanoramaViewer: "True"

3CroppedAreaImageWidthPixels: "12345"

4CroppedAreaImageHeightPixels: "12345"

5FullPanoWidthPixels: "12345"

6FullPanoHeightPixels: "12345"

7CroppedAreaLeftPixels: "0"

8CroppedAreaTopPixels: "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
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,705
Location
Sydney, Australia
Programming Experience
10+
Top Bottom