Code: Select all
install both the image cacher and the post max image size mod
be sure to install the cacher first!
then do:
#
#-----[ OPEN ]------------------------------------------
#
functions_cache.php
#
#-----[ FIND ]------------------------------------------
#
$im2 = imagecreatetruecolor( $w, $h + 20 );
#
#-----[ REPLACE WITH ]------------------------------------------
#
$newwidth = $board_config[ 'postimg_width' ];
$newheight = $board_config[ 'postimg_height' ];
if($w > $h && $newheight < $h){
$newheight = $h / ($w / $newwidth);
} else if ($w < $h && $newwidth < $width) {
$newwidth = $w / ($h / $newheight);
} else {
$newwidth = $w;
$newheight = $h;
}
$im2 = imagecreatetruecolor( $newwwidth, $newheight + 20 );
#
#-----[ FIND ]------------------------------------------
#
imagecopy( $im2, $im1, 0, 0, 0, 0, $w, $h );
#
#-----[ REPLACE WITH ]------------------------------------------
#
imagecopyresized($im2, $im1, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
and there you go, a thumbnail caching thingo that then shows thumbnails
and if you wait for me to "release" the image cacher 0.8.0 the thumbnails
will link to the original image
BinB wrote: But only the first time ideally....It's a catch 22 I guess.
If he's doing that for EVERY load, GD will kill my processor time. If we could get your Cache mod to cache thumbnails rather than full images, that would be great, but I'm seeing lots of hurdles to accomplish that.
I think we're going to be stuck with images ON or Images OFF to make our dial up users happy....
Thanks again!
Swizec wrote: I don't really know jif any code had to be removed, I mostly use included files so...
what kinda access are you using?
this sounds to em liek permissions issues, for me it worked by simply chmodding the cache to 777