Package: igal Version: 1.4-13 Severity: wishlist Tags: patch This is a patch I submitted to upstream some time ago, he expected he would use it if there were to be another release. It checks the mtime on each thumbnail against the original image, and regenerates it if required. No more "I changed the image, why hasn't the index changed" from my end user !
Nick -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (60, 'testing'), (2, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.11-1-k7 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Versions of packages igal depends on: ii imagemagick 6:6.0.6.2-2.4 Image manipulation programs 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.4-8 Larry Wall's Practical Extraction -- no debconf information -- http://www.leverton.org/ ... So express yourself
--- igal.sav2 2005-04-17 16:22:44.000000000 +0100 +++ igal 2005-09-07 14:08:58.000000000 +0100 @@ -338,9 +338,6 @@ # generate .thumbnails in the same directory with the original image files # if they don't exist already or if the -f switch is given -# or if the image file has newer mtime than its existing .thumbnail. -# note this could miss files on FAT filesystems, which only hold time to -# 2 secs, or on nfs if the system clocks don't match. print "Creating thumbnails: "; for ($i = 0; $i < $nfiles; $i++) { @@ -348,7 +345,7 @@ $fullfile = "$opt_d/$file"; die "Can't open $fullfile\n" unless (-r $fullfile); $fullthumb = "$opt_d/$thumbprefix$file"; - if ((! -e $fullthumb) or $opt_f or (stat($fullfile))[9] > (stat($fullthumb))[9]) { + if ((! -e $fullthumb) or $opt_f) { if ($HAVEIM) { $command = "convert +profile '*' $opt_con -scale x$opt_y \"$fullfile\" \"$fullthumb\""; # this opt_xy handling should probably be fixed...