From c5dc023bbfd2e5f4cdc6140d0ff3a21f8e9d1710 Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 14 May 1998 08:41:18 +0000 Subject: [PATCH] Create jpg instead of gif. --- fotoindex/fotoindex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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");