Package: llgal
Version: 0.13.15-1
Severity: normal

Hi,

The attached patch fixes a problem which happens when llgal calls
convert to generate the thumbnails. It's necessary to tell the software
the next dash should not be considered an option, but a part of the file name.

Here's my output before patching:

tiago...@gcc-prsp:~/tmp$ ls
-kC1SQMR_dw
tiago...@gcc-prsp:~/tmp$ llgal --Pall --Ps -L
Listing entries in . :  100,00%
Listing entries in -kC1SQMR_dw :  100,00%
Preparing entries:  100,00%
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-1.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-1.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-11.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-11.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-21.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-21.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-31.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-31.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-41.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-41.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-51.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-51.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-61.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-61.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-71.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-71.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-81.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-81.jpeg' @
convert.c/ConvertImageCommand/1664.
!! Failed to create '-kC1SQMR_dw/-kC1SQMR_dw-91.jpeg' thumbnail.
!! convert: unrecognized option `-kC1SQMR_dw/-kC1SQMR_dw-91.jpeg' @
convert.c/ConvertImageCommand/1664.
Found 4 entries in current directory
Using '/usr/share/llgal/slidetemplate.html' as HTML slide template.
Creating individual slides:  100,00%
Using '/usr/share/llgal/indextemplate.html' as HTML index template.
Creating the index.html file:  100,00%
Found llgal.css in .llgal/, using it.

After patching, things go well:

tiago...@gcc-prsp:~/tmp$ llgal --Pall --Ps -L
Listing entries in . :  100,00%
Listing entries in -kC1SQMR_dw :  100,00%
Preparing entries:  100,00%
Found 14 entries in current directory
Using '/usr/share/llgal/slidetemplate.html' as HTML slide template.
Creating individual slides:  100,00%
Using '/usr/share/llgal/indextemplate.html' as HTML index template.
Creating the index.html file:  100,00%
No llgal.css in .llgal/, getting a copy from /usr/share/llgal

Thanks,

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages llgal depends on:
ii  imagemagick                  7:6.5.8.3-1 image manipulation programs
ii  libimage-size-perl           3.220-1     Perl module for determining images
ii  liblocale-gettext-perl       1.05-6      Using libc functions for internati
ii  liburi-perl                  1.50-1      module to manipulate and access UR
ii  perl                         5.10.1-8    Larry Wall's Practical Extraction

Versions of packages llgal recommends:
ii  libimage-exiftool-perl        7.89-1     Library and program to read and wr

llgal suggests no packages.

-- no debconf information

--
Tiago Bortoletto Vaz
http://tiagovaz.org
0xA504FECA - http://pgp.mit.edu
--- Config.pm.orig	2010-02-19 15:47:04.000000000 -0200
+++ Config.pm	2010-02-19 15:42:51.000000000 -0200
@@ -434,8 +434,8 @@
 # user-added directories where templates might be found
 	template_dirs => [],
 # commands to generate thumbnails and scaled images
-	scaled_create_command => "convert -scale <MAXW>x<MAXH> <IN> <OUT>",
-	thumbnail_create_command => "convert -scale <MAXW>x<MAXH> <IN> <OUT>",
+	scaled_create_command => "convert -scale <MAXW>x<MAXH> -- <IN> <OUT>",
+	thumbnail_create_command => "convert -scale <MAXW>x<MAXH> -- <IN> <OUT>",
 # force thumbnails and scaled images regeneration
 	force_image_regeneration => 0,
 # makes everything world-readable (--www)

Reply via email to