peircej / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

Tag pictures with synchronizeXmp on (exiftool error) #150

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure JBRout to synchronize XMP and IPTC tags
2. Tag some pictures (but it's not systematic)
3.

What is the expected output? What do you see instead?
Tagging was apparently done (though I can't say for sure about the XMP tags) 
but an exception was raised (not on all pictures, though all in the set were 
made with the same camera):

Traceback (most recent call last):
  File "/home/toto/jbrout-read-only/jbrout/jbrout.py", line 189, in on_key_press_for_tag
   self.parentWin.setTagsOnSelected(self,[tag,])
  File "/home/toto/jbrout-read-only/jbrout/jbrout.py", line 2056, in setTagsOnSelected
   XMPUpdater(ln).UpdateXmp()
  File "/home/toto/jbrout-read-only/jbrout/jbrout/tools.py", line 684, in UpdateXmp
   self.DoSaveXmp()
  File "/home/toto/jbrout-read-only/jbrout/jbrout/tools.py", line 720, in DoSaveXmp
   ret= _Command._run(command)
  File "/home/toto/jbrout-read-only/jbrout/jbrout/tools.py", line 146, in _run
   raise CommandException( cmdline +"\n OUTPUT ERROR:"+outerr)
 CommandException: [u'/usr/bin/exiftool -r -overwrite_original -subject< keywords /home/toto/photos/panasonic/i100605_bbq_karine_philippe/p20100605-p1120572.jpg /home/toto/photos/panasonic/i100605_bbq_karine_philippe/p20100605-p1120573.jpg /home/toto/photos/panasonic/i100605_bbq_karine_philippe/p20100605-p1120577.jpg']
 OUTPUT ERROR:Warning: [minor] Possibly incorrect maker notes offsets (fix by -216?) - /home/toto/photos/panasonic/i100605_bbq_karine_philippe/p20100605-p1120577.jpg

What version of the product are you using? On what operating system?
SVN version R300 on Ubuntu Jaunty (9.04)

Please provide any additional information below.

Original issue reported on code.google.com by chartier...@gmail.com on 9 Jun 2010 at 10:52

GoogleCodeExporter commented 8 years ago
Additional information: my camera is a Panasonic DMC-FZ28, but 
this behaviour seems to happen only on pictures that were rotated (using jbrout 
Autorotate operation). 

Besides, after several tests adding and removing tags, when viewing the 
information with exiftool, a "Subject" line appears, either corresponding to 
the current list of tags, or with some previous tags if I have removed them. 

I'll try to send some example pictures later.

Original comment by chartier...@gmail.com on 9 Jun 2010 at 1:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I forgot: I'm using pyexiv2 0.1.3 !

About that last part (remaining presence of removed tags), it stems from the 
fact that XMP keywords are not removed when the last tag (or all tags) are 
removed. I only one tag (of several) is removed, it's fine, and when one adds 
new tags, the old ones are removed. This particular problem only occurs when 
making an image "tag-free".

I thought it came from the command  del self._md["Xmp.dc.subject"] in 
pyexiv.py, but since it's about pyexiv2 v0.2, it's rather in XMPUpdate in 
tools.py

Original comment by chartier...@gmail.com on 10 Jun 2010 at 12:31

GoogleCodeExporter commented 8 years ago
This bug is probably obsolete ... exiftool is not used anymore at all.

Original comment by matej.c...@gmail.com on 24 Jun 2012 at 10:08

GoogleCodeExporter commented 8 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 11:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That is not true.

./jbrout/jbrout/commongtk.py:   data = Popen(["exiftool", "-b", "-PreviewImage",
./jbrout/jbrout/db.py:          data = Popen(["exiftool", "-b", "-JpgFromRaw",

Original comment by matej.c...@gmail.com on 17 Jul 2014 at 12:09