it'd be great if coppermine had a feature to conserve disk space.
essentially right now coppermine takes an image, keeps the original size, and on top of it creates two more fiels (thumb+mid).
once you get a gallery with a lot of pictures, it starts to add up in disk space.
i use this gd resize on the fly script:
thumbnail.php
<?php
define(thumbnailWidth, "158");
header("Content-type: image/jpeg");
$filename = $HTTP_GET_VARS["filename"];
$source = imagecreatefromjpeg($filename);
$thumbX = thumbnailWidth;
$imageX = imagesx($source);
$imageY = imagesy($source);
$thumbY = (int)(($thumbX*$imageY) / $imageX );
$dest = imagecreatetruecolor($thumbX, $thumbY);
imagecopyresampled ($dest, $source, 0, 0, 0, 0, $thumbX, $thumbY, $imageX, $imageY);
imagejpeg($dest);
imagedestroy($dest);
imagedestroy($source);
?>
and then call images by thumbnail.php?filename=blah.jpg
essentially it only need the original. and on the fly resizes (creates, displays, destroys) and preserves ratio using the defined width (which you could pull from config).
anyone think it'd be a nice option in coppermine?