[Digikam-users] jhead problem

jdd jdd at dodin.org
Sat Jul 19 10:39:40 BST 2008


I'm puzzeld..

the file content is (hexdump -c):

0000530 320 377  \0  \0  \0  \0  \0  \0   0  \0  \0  \0  \0  \0   A  S
0000540   C   I   I  \0  \0  \0   I   l       r   e   s   t   e      d
0000550   e       l   a       p   l   a   c   e       p   o   u   r
0000560   l   a       r   a   m  \0   @ 037  \0 320  \0  \0  \0  \0  p
0000570 027  \0 234  \0  \0  \0  \0  \b  \0  \0  \0  \b  \0  \0 004 \0
00

see the \0 after "ram"


jhead -ce <file> (->vi)
Il reste de la place pour la ram^@^@

and jhead -cs temp <file> gives

jdd at linux-0hk5:~/temp/20080716> hexdump temp
0000000 6c49 7220 7365 6574 6420 2065 616c 7020
0000010 616c 6563 7020 756f 2072 616c 7220 6d61
0000020 0000
0000022

(same result, may be noted y system is utf8)

but exiv2 -ph <file> > ex.txt gives

0x9286 Photo        UserComment                 Undefined  40  40
   0000  41 53 43 49 49 00 00 00 49 6c 20 72 65 73 74 65  ASCII...Il reste
   0010  20 64 65 20 6c 61 20 70 6c 61 63 65 20 70 6f 75   de la place pou
   0020  72 20 6c 61 20 72 61 6d                          r la ram

0xa000 Photo        FlashpixVersion             Undefined   4   4

and exiv2 file gives
Commentaire Exif: Il reste de la place pour la ram

after removing the null with jhead:

0x9286 Photo        UserComment                 Undefined  40  40
   0000  41 53 43 49 49 00 00 00 49 6c 20 72 65 73 74 65  ASCII...Il reste
   0010  20 64 65 20 6c 61 20 70 6c 61 63 65 20 70 6f 75   de la place pou
   0020  72 20 6c 61 20 72 61 6d                          r la ram

0xa000 Photo        FlashpixVersion             Undefined   4   4
   0000  30 31 30 30

exact same result

jdd
-- 
http://www.dodin.net




More information about the Digikam-users mailing list