My company wants a web application for local intranet use to view some 70,000 high quality tiffs (these are imaged historical documents). Our plan is to use php with imagemagick to load the images in memory, convert them, and echo out the results without touching the original tiffs. The problem here is that this is somewhat sluggish, averaging out at about 7 seconds an image. Are there any programs out there that specialize in speed processing? We would even consider speed over quality in this case (provided quality dip is not TOO horrible). Any help would be appreciated.
Also, here is the php we are using:
<?php
$resolution=$_GET["res"];
$photopath="C:\LightTPD\htdocs\";
$photo=$photopath."test.tif";
$imagesize = getimagesize($photo);
if ($resolution == null) {
$resolution = $imagesize[1];
}
$cmdpath = "C:\PROGRA~1\IMAGEM~2.0-Q\";
$cmd = $cmdpath."convert \"$photo\" -scale ".$resolution."x".$resolution." -strip -unsharp 0.2x0.6+1.0 -quality 87 JPG:-";
header('Content-type: image/jpg');
passthru($cmd);
?>
P.S. We have tried other formats like JPEG-2000 and PNG, but they have proved unsuitable for our needs. JPEG-2000 reduces file size by half but triples the processing time, PNG reduces file size by about a third, but increases processing time by a small amount. We have also loaded the scripts on Lighttpd to reduce processing time furher.