To make it so, within Gallery 1.3, a non-full-sized photo is clicked and a NEW window
pops up, sized perfectly to the full-sized-image, drop in the following code:
in view_photo.php, find the block and hack in the following.
if (!$gallery->album->isMovie($id)) {
if ($gallery->album->isResized($index) && !$do_fullOnly) {
if ($full) {
echo "";
} else {
// presence: Get full image's attributes
$pres_fullurl = preg_replace("/^.*albums\//","",$photoTag);
preg_match("/(.*)\/(.*).sized.(.*) width=(\d+) height=(\d+)/",$pres_fullurl,$pres_match);
$pres_album = $pres_match[1];
$pres_img = $pres_match[2];
$pres_ext = $pres_match[3];
$pres_wid = $pres_match[4];
$pres_hei = $pres_match[5];
//echo "$pres_album
$pres_img
$pres_ext
$pres_wid
$pres_hei";
$pres_im = imagecreatefromjpeg("http://cowkitty.irev.net/cowkittystudios/albums/$pres_album/$pres_img.$pres_ext");
$pres_width=ImageSX($pres_im);
$pres_height=ImageSY($pres_im) + 40;
?>
echo "";
}
$openAnchor = 1;
Edit a new file named showfull.php:
Full Image
Cowkitty Studios