brunolojor / jbrout

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

jbrout failed to rebuild thumbnails #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. select several photos
2. click "rebuild thumbnails"

What is the expected output? What do you see instead?
expected to jbrout rebuild all thumbnails, and if exists some troubles just
report me about it with the names of incorrect files. All correct files mus
be proceeded.

I received error message and jbrout stop rebuilding.

Traceback (most recent call last):
  File "./jbrout.py", line 1898, in on_selecteur_menu_select_plugin
    ret=callback(l)
  File
"/home/kefiiir/doc/src/!svn/jbrout-read-only/jbrout/plugins/__init__.py",
line 203, in myCallBack
    ret=callback(*a,**k)
  File
"/home/kefiiir/doc/src/!svn/jbrout-read-only/jbrout/plugins/rotate/__init__.py",
line 82, in rebuildThumb
    i.rebuildThumbnail()
  File "/home/kefiiir/doc/src/!svn/jbrout-read-only/jbrout/jbrout/db.py",
line 769, in rebuildThumbnail
    pc.rebuildExifTB()
  File "/home/kefiiir/soft/jbrout/jbrout/tools.py", line 490, in rebuildExifTB
    im.thumbnail((160,160), Image.ANTIALIAS)
  File
"//usr/lib/python2.5/site-packages/PILwoTk-1.1.6.4-py2.5-linux-i686.egg/PIL/Imag
e.py",
line 1522, in thumbnail
    self.load()
  File
"//usr/lib/python2.5/site-packages/PILwoTk-1.1.6.4-py2.5-linux-i686.egg/PIL/Imag
eFile.py",
line 192, in load
    raise IOError("image file is truncated (%d bytes not processed)" % len(b))
IOError: image file is truncated (29 bytes not processed)

What version of the product are you using? On what operating system?
svn revision 167

Please provide any additional information below.

attached file calls this error

Original issue reported on code.google.com by Oleg.Bla...@gmail.com on 20 Jan 2009 at 5:06

Attachments:

GoogleCodeExporter commented 9 years ago
and this damaged file in the same situation calls the next error:

Traceback (most recent call last):
   File "./jbrout.py", line 1898, in on_selecteur_menu_select_plugin
    ret=callback(l)
   File "/home/kefiiir/doc/src/!svn/jbrout-read-only/jbrout/plugins/__init__.py",
line 203, in myCallBack
    ret=callback(*a,**k)
   File
"/home/kefiiir/doc/src/!svn/jbrout-read-only/jbrout/plugins/rotate/__init__.py",
 line
82, in rebuildThumb
    i.rebuildThumbnail()
   File "/home/kefiiir/doc/src/!svn/jbrout-read-only/jbrout/jbrout/db.py", line 769,
in rebuildThumbnail
    pc.rebuildExifTB()
   File "/home/kefiiir/soft/jbrout/jbrout/tools.py", line 490, in rebuildExifTB
    im.thumbnail((160,160), Image.ANTIALIAS)
   File
"//usr/lib/python2.5/site-packages/PILwoTk-1.1.6.4-py2.5-linux-i686.egg/PIL/Imag
e.py", line
1522, in thumbnail
    self.load()
   File
"//usr/lib/python2.5/site-packages/PILwoTk-1.1.6.4-py2.5-linux-i686.egg/PIL/Imag
eFile.py",
line 207, in load
    raise IOError(error + " when reading image file")
 IOError: decoding error when reading image file

Original comment by Oleg.Bla...@gmail.com on 20 Jan 2009 at 5:14

Attachments:

GoogleCodeExporter commented 9 years ago
really really interesting pictures ...

BTW, jBrout should only manage pictures from cam (and so, shouldn't fail on 
this kind
of pictures)

your pictures don't came from a cam ... but are damaged for sure ;-)
in the past, rebuilding thumbs was done by an external tool (which was able to 
handle
more strange cases ;-). Now It's fully done in python, with PIL Image library, 
which
seems to have troubles with your pictures.

I will investigate ...

Original comment by manat...@gmail.com on 20 Jan 2009 at 10:19

GoogleCodeExporter commented 9 years ago
fixed in r168

Original comment by manat...@gmail.com on 20 Jan 2009 at 10:38