diff --git a/fotoindex/fotoindex b/fotoindex/fotoindex index 52d5e93..dcc35d8 100755 --- a/fotoindex/fotoindex +++ b/fotoindex/fotoindex @@ -47,6 +47,7 @@ $pnmfile = "/usr/local/bin/pnmfile"; $pnmscale = "/usr/local/bin/pnmscale"; $ppmquant = "/usr/local/bin/ppmquant"; $ppmtogif = "/usr/local/bin/ppmtogif"; +$cjpeg = "/usr/local/bin/cjpeg"; chdir($fotodir) or die "cannot cd to $fotodir: $!"; @@ -104,7 +105,7 @@ open(HTML, ">map.html") or die "cannot open map.html for writing: $!"; print HTML "Wifo: Photo Gallery\n"; print HTML "\n"; -print HTML qq| \n|; print HTML qq|\n|; @@ -136,4 +137,4 @@ print HTML "\n"; if (!close (HTML)) { print "$0: error closing map.html: $!\n"; } -system("$pnmcat -topbottom -jleft -white " . join(" ", @col) . "| $ppmquant 256 | $ppmtogif > map.gif"); +system("$pnmcat -topbottom -jleft -white " . join(" ", @col) . "| $cjpeg -progressive > map.jpg");