
Originally Posted by
ofnuts
You can check that the exifs are loaded properly. Load the picture (that should be the only picture in Gimp for the following code to work), open the python-fu console and enter:
Code:
image=gimp.image_list()[0]
exif=image.parasite_find('exif-data')
print len(exif.data)
Either you get some value in the thousands (this is the size in bytes of the EXIF data, the image I tried from my DSLR gives 15401) or you get some nastygram because the exif data isn't there.
Interesting. Thanks for that.
A bit of background... I use Aftershot Pro to edit RAW images, and that either saves them to tif or jpg. When I saved a sample of both, both had relevant EXIF using gthumb. After using Gimp to further edit the previously saved tif and jpg images, Gimp stripped away the EXIF info from the tif, and the jpg.
Aftershot Pro RAW saved as Jpg, then reopened and edited in Gimp seems to pass the EXIF info intact.
So, here's the results I have from both files saved under Aftershot Pro, reopened in Gimp with only the script you gave me run...
Tif...
Code:
>>> image=gimp.image_list()[0]
>>> exif=image.parasite_find('exif-data')
>>> print len(exif.data)
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'data'
Jpg...
Code:
>>> >>> image=gimp.image_list()[0]
File "<input>", line 1
>>> image=gimp.image_list()[0]
^
SyntaxError: invalid syntax
>>> >>> exif=image.parasite_find('exif-data')
File "<input>", line 1
>>> exif=image.parasite_find('exif-data')
^
SyntaxError: invalid syntax
>>> >>> print len(exif.data)
File "<input>", line 1
>>> print len(exif.data)
^
SyntaxError: invalid syntax
>>> Traceback (most recent call last):
File "<input>", line 1
Traceback (most recent call last):
^
SyntaxError: invalid syntax
>>> File "<input>", line 1, in <module>
File "<input>", line 1
File "<input>", line 1, in <module>
^
IndentationError: unexpected indent
>>> AttributeError: 'NoneType' object has no attribute 'data'
Hope this helps...