pombreda / python-xmp-toolkit

Automatically exported from code.google.com/p/python-xmp-toolkit
Other
0 stars 1 forks source link

Texty property limited to 255 chars? #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. xmp = XMPFiles(
file_path="/home/clr/ruby/rails/spitzer.caltech.edu/spec/fixtures/test.tif" )
2. xmp_data = xmp.get_xmp()
3. xmp_data.get_property( "http://ns.adobe.com/photoshop/1.0/", 'Headline' )

What is the expected output? What do you see instead?
expected: A string around 450 characters long.
got: A string 255 characters long.

What version of the product are you using? On what operating system?
python-xmp-toolkit-rc1.0
Fedora GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by clr.port...@gmail.com on 8 May 2009 at 10:01

GoogleCodeExporter commented 9 years ago
Hi,

I've have not be able to reproduce this problem. Could you perhaps please send 
me your test file so that I can 
verify on that file - just send it to lnielsen@eso.org.

Cheers,
Holm

Original comment by lniel...@spacetelescope.org on 16 Feb 2010 at 4:55

GoogleCodeExporter commented 9 years ago
I've been able to reproduce now, after fixing the 64-bit issue. I've tested a 
bit more, and it seems like to be limited to TIF files, and depends on if smart 
handlers are being used to open the file.  Following should be a workaround for 
the problem:

1. xmp = 
XMPFiles(file_path="/home/clr/ruby/rails/spitzer.caltech.edu/spec/fixtures/test.
tif", open_usepacketscanning=True )
2. xmp_data = xmp.get_xmp()
3. xmp_data.get_property( "http://ns.adobe.com/photoshop/1.0/", 'Headline' )

Original comment by lniel...@spacetelescope.org on 31 Mar 2011 at 10:57