I've been running my Nuke/G1.5 setup for almost 2 years now, and the whole time I've had the problem where the featured photo block would use a fullsized image instead of a thumbnail. This would result in a 100kb jpg having to load with every pageview.
Now, with my almost zero knowledge of PHP, and a couple of hours of tinkering, I've figured it out. It's a little late (who's using G1 anymore?), but w/e.
find this:
Code: › if ($album && $id) {
$index = $album->getPhotoIndex($id);
$photo = $album->getPhoto($index);
$dir = $album->getAlbumDirURL("full");
$image = $photo->image;
$PHOTO_URL = makeAlbumUrl($album->fields['name'], $id);
$ALBUM_URL = makeAlbumUrl($album->fields['name']);
$IMG = "<center><a href=\"$PHOTO_URL\">".$image->getTag($dir,0,$scaleTo)."</a>";
$CAPTION = $album->getCaption($index);
$FROM = "From: <a href=\"$ALBUM_URL\">" . $album->fields['title'] . '</a>';
in featured_photo.php change it to this:
Code: ›
if ($album && $id) {
$index = $album->getPhotoIndex($id);
$photo = $album->getPhoto($index);
$photo = $album->getThumbnailTag($index);
$dir = $album->getAlbumDirURL("full");
$PHOTO_URL = makeAlbumUrl($album->fields['name'], $id);
$ALBUM_URL = makeAlbumUrl($album->fields['name']);
$IMG = "<center><a href=\"$PHOTO_URL\">".$photo."</a>";
$CAPTION = $album->getCaption($index);
$FROM = "From: <a href=\"$ALBUM_URL\">" . $album->fields['title'] . '</a>';
Works perfectly for me. It grabs the thumbnail of the featured photo instead of the fullsize. The image that displays will be your thumbnail, and the scaling is disabled. I'm not sure how you would add scaling of the thumbnails at this point, because I don't really need it. Hope this helps someone!