Package: llgal
Version: 0.9.10-1
Severity: wishlist
Tags: patch

Hi,

I wanted to create an html gallery from some pictures I took with my
digital camera. I used digikam to edit the image (JPEG/JFIF) comments
and told llgal to use them for creating the captions. Sadly, I got no
captions, even if rdjpgcom showed me the right comments.
It took me some time to understand what's going on. The problem seems to
be that my camera puts some stuff in the UserComment field (exif.py
displays "UserComment: (0x9286) Undefined=[] @ 1886"), that can't be
properly interpreted by Image::Info. Since it is set though,
(($infos->{UserComment}) ne "") evaluates to true.
In the following, my JFIF-comments, stored in $infos->{Comment} are
ignored. To circumvent this, the attached patch turns the way llgal
considers the comments around. It first considers the JFIF
comments and only if they are empty uses the EXIF ones.
I could not test the behaviour with exif-comments though, since all
programs I have at hand edit the JFIF-Comments, even exiftran.
removes trailing

Perhaps we should give the user the ability to choose which comments to
use on the commandline (--cte, --ctj) and get a sound default as honour
JFIF before EXIF or vice versa. Since JFIF is more commonly used and
more flexible I'd plead for using JFIF as default.
If you want, I can prepare a patch for this.

I did not find a llgal mailing list, so I used debian's BTS for this
report in case other people have comments to this too.

Thanks for listening,

Wolfi


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-wjq
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)

Versions of packages llgal depends on:
ii  imagemagick                  6:6.2.3.6-3 Image manipulation programs
ii  libimage-info-perl           1.16-2      allows extraction of meta informat
ii  libimage-size-perl           2.992-1     determine the size of images in se
ii  liburi-perl                  1.35-1      Manipulates and accesses URI strin
ii  perl                         5.8.7-4     Larry Wall's Practical Extraction 

llgal recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to