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:


[TD="class: number"]1[/TD]
[TD="class: content"]System.Text.Encoding.ASCII.GetString(imageFile.GetPropertyItem(36867).Value)[/TD]


But I need to add to the file following attributes:


[TD="class: number"]1[/TD]
[TD="class: content"]ProjectionType: "equirectangular"[/TD]


[TD="class: number"]2[/TD]
[TD="class: content"]UsePanoramaViewer: "True"[/TD]


[TD="class: number"]3[/TD]
[TD="class: content"]CroppedAreaImageWidthPixels: "12345"[/TD]


[TD="class: number"]4[/TD]
[TD="class: content"]CroppedAreaImageHeightPixels: "12345"[/TD]


[TD="class: number"]5[/TD]
[TD="class: content"]FullPanoWidthPixels: "12345"[/TD]


[TD="class: number"]6[/TD]
[TD="class: content"]FullPanoHeightPixels: "12345"[/TD]


[TD="class: number"]7[/TD]
[TD="class: content"]CroppedAreaLeftPixels: "0"[/TD]


[TD="class: number"]8[/TD]
[TD="class: content"]CroppedAreaTopPixels: "0"[/TD]



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
 
Back
Top