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:
But I need to add to the file following attributes:
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
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.GetPropertyItem(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