brunolojor / jbrout

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

New problem when adding a folder #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. refresh a folder

What is the expected output? What do you see instead?
Expected: nice thumbnails. Instead, I got an ugly dialog :-(

What version of the product are you using? On what operating system?
Windows XP SP3, jBrout 0.3.145, manually patched to svn revision 153

Please provide any additional information below.

This looks exactly like issue 22, but the pictures which jBrout rejected
work since I updated jBrout, so this must be slightly different.

I am now going to track down the picture. Can someone please try to do
something so that jBrout ALWAYS displays the name of the file when he
displays an error?

Original issue reported on code.google.com by davito...@gmail.com on 10 Jan 2009 at 2:18

Attachments:

GoogleCodeExporter commented 8 years ago
I found one picture, but there are others...

Original comment by davito...@gmail.com on 10 Jan 2009 at 2:54

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by manat...@gmail.com on 10 Jan 2009 at 11:54

GoogleCodeExporter commented 8 years ago
Yes, your IPTC tags are encoded in latin1 or iso ... which makes this trouble.

jBrout will now try to decode iptc tags whose are not in UTF8 ...

perhaps by a simple :
http://stackoverflow.com/questions/269060/is-there-a-python-library-function-whi
ch-attempts-to-guess-the-character-encoding#273631
in this case, which must make a list of possible encodings ...

Or use something like the excellent chardet ...
http://pypi.python.org/pypi/chardet/1.0.1

Original comment by manat...@gmail.com on 11 Jan 2009 at 11:14

GoogleCodeExporter commented 8 years ago
fixed in r155

I used the first solution below
Now, all "jpeg comment" and "iptc tags" can be decoded from any encoding.

Original comment by manat...@gmail.com on 11 Jan 2009 at 1:05

GoogleCodeExporter commented 8 years ago
Ok. It works. I re-imported my full photo collection with only a few errors, but
these are different, so I will fill an new issue (36).

I am "expanding" your solution to a suggestion (issue 34)

Original comment by davito...@gmail.com on 11 Jan 2009 at 2:26