Whew, good. 

Remember, like I said, it's very good at *reading* the xmp metadata now, but 
still has some issues writing that I'm looking into. 

Another thing to note:

For many of the "namespaces schemas", I found documentation about the tags and 
put those in my table so it gets the types correct. But there were many 
instances of metadata I saw in your file whose names were not in the official 
documentation for those schema, and of course in any file it may come across a 
schema I haven't seen and didn't know to put in the table. In those cases, it 
will put the unknown metadata into the ImageSpec attributes, but it will just 
make it a string (it's hard to find a heuristic for what the type is supposed 
to be without guessing wrong some of the time). So depending on what you're 
looking for as you root through the metadata, your app's logic should be 
prepared for some of them to unexpectedly be strings, and do whatever 
conversion is necessary on your end. Of course, if you *know* a particular 
name/type that will pop up despite not being in the schema docs, I'm happy to 
add it to the table.


> On Apr 26, 2017, at 9:58 AM, Chris Bennett <[email protected]> 
> wrote:
> 
> Hey Larry,
> 
> Thanks for the patch! Will pull it down and give it a try.
> I am alright using master, no worries on a backport I believe.
> 
> Thanks for the quick turnaround!
> 
> Chris Bennett
> 
> 
> On Tue, Apr 25, 2017 at 11:30 AM, Larry Gritz <[email protected] 
> <mailto:[email protected]>> wrote:
> Chris, there were a few issues that needed fixing. I've proposed a patch, 
> https://github.com/OpenImageIO/oiio/pull/1679 
> <https://github.com/OpenImageIO/oiio/pull/1679>
> 
> Maybe you can pull this and give it a try? It's a patch for master, but if it 
> work and you need it backported to 1.7, I can try to do that. (But if you are 
> ok using master, I'd prefer that because it's turning into a more extensive 
> change than I usually backport, though I can do it if necessary.)
> 
> There appears to be a (possibly unrelated) problem with writing XMP to 
> certain files. But this patch should at least improve the reading.
> 
> 
>> On Apr 20, 2017, at 5:13 PM, Chris Bennett <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hey Larry!
>> 
>> Thanks for the quick response.
>> 
>> I tried with 1.5.16, 1.6.18, and 1.7.12 all with the same results.
>> 
>> Sure thing! An image I was using to compare my own work with I grabbed from 
>> the vlc site:
>> 
>> http://streams.videolan.org/streams/360/Mountain_360.jpg 
>> <http://streams.videolan.org/streams/360/Mountain_360.jpg>
>> 
>> Here is what I get from oiiotool
>> 
>> oiiotool.exe -v --info F:\krp\Mountain_360.jpg
>> Reading F:\krp\Mountain_360.jpg
>> F:\krp\Mountain_360.jpg : 4096 x 2048, 3 channel, uint8 jpeg
>>     channel list: R, G, B
>>     oiio:ColorSpace: "sRGB"
>>     jpeg:subsampling: "4:4:4"
>>     Exif:ImageWidth: 4096
>>     Exif:ImageLength: 2048
>>     Exif:Photometric: 2
>>     ImageDescription: "PHOTO mode"
>>     Make: "GIROPTIC"
>>     Model: "360 Cam V1"
>>     Orientation: 1 (normal)
>>     Exif:SamplesPerPixel: 3
>>     XResolution: 300
>>     YResolution: 300
>>     ResolutionUnit: "none"
>>     Software: "Adobe Photoshop CC 2017 (Macintosh)"
>>     DateTime: "2016:11:24 14:18:22"
>>     Artist: "001200140C"
>>     Copyright: "Copyright, GIROPTIC 360┬░ Experts, 2014. All rights reserved"
>>     Exif:ColorSpace: 65535
>>     Exif:PixelXDimension: 4096
>>     Exif:PixelYDimension: 2048
>>     IPTC:Caption: "PHOTO mode"
>>     IPTC:Creator: "001200140C"
>>     IPTC:CopyrightNotice: "Copyright, GIROPTIC 360┬░ Experts, 2014. All 
>> rights r
>> eserved"
>> 
>> and the output I get from Exif tool seems too long to put in this email so I 
>> will leave it out, but I will show the part that I am hoping to grab from 
>> OIIIO
>> 
>> XMP Toolkit                     : Adobe XMP Core 5.6-c138 79.159824, 
>> 2016/09/14-01:09:01
>> Use Panorama Viewer             : True
>> Projection Type                 : equirectangular
>> Pose Heading Degrees            : 0.0
>> Cropped Area Left Pixels        : 0
>> Full Pano Width Pixels          : 4096
>> Cropped Area Top Pixels         : 0
>> Cropped Area Image Height Pixels: 2048
>> Full Pano Height Pixels         : 2048
>> Source Photos Count             : 3
>> Cropped Area Image Width Pixels : 4096
>> Largest Valid Interior Rect Left: 0
>> Largest Valid Interior Rect Top : 0
>> Largest Valid Interior Rect Width: 4096
>> Largest Valid Interior Rect Height: 2048
>> Format                          : image/jpeg
>> 
>> Thanks!
>> 
>> Chris Bennett
>> 
>> On Thu, Apr 20, 2017 at 4:19 PM, Larry Gritz <[email protected] 
>> <mailto:[email protected]>> wrote:
>> Which version of OIIO?
>> 
>> Can you make one of those jpg files available so I can see exactly what's in 
>> it?
>> 
>> 
>>> On Apr 20, 2017, at 3:58 PM, Chris Bennett <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> Hello!
>>> 
>>> Long time reader of the mailing list, first time writer. 
>>> 
>>> I was curious of OIIO's xmp read/write capabilities.
>>> 
>>> I intended to use it to manipulate xmp metadata on stereo panorama images 
>>> but when I used the python lib: 
>>> 
>>> input = ImageInput('F:/myfile.jpg')
>>> spec = input.spec()
>>> for atr in spec.extra_attribs:
>>>     print atr.name <http://atr.name/>
>>> 
>>> I did not get any of the GPano xmp tags that I had gotten with the exiftool.
>>> 
>>> I also ran it with oiiotool.exe and ended up with the same output.
>>> 
>>> It could be I missed something in my (Windows) build. I have yet to try 
>>> this on other OS's.
>>> 
>>> Just now digging on the surface of this so any advice to point me in the 
>>> correct direction would be super helpful.
>>> 
>>> Thanks!
>>> 
>>> PS. Thanks for creating this awesome toolset.
>>> 
>>> Chris Bennett
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected] <mailto:[email protected]>
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
>> 
>> --
>> Larry Gritz
>> [email protected] <mailto:[email protected]>
>> 
>> 
>> 
>> _______________________________________________
>> Oiio-dev mailing list
>> [email protected] <mailto:[email protected]>
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
>> 
>> 
>> _______________________________________________
>> Oiio-dev mailing list
>> [email protected] <mailto:[email protected]>
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> --
> Larry Gritz
> [email protected] <mailto:[email protected]>
> 
> 
> 
> _______________________________________________
> Oiio-dev mailing list
> [email protected] <mailto:[email protected]>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> 
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to