Okay, the reason I posted this is because I wasn\'t sure what to search for. I\'ll try to explain it as clearly as I can.
Say, I have an image sized 800x600. The box
This is exactly you´re looking for, and one step futher, caching thumbs:
Check http://phpthumb.gxdlabs.com/
You can use this script as script.php?img=image.jpg&size=100, in this case, they are on the same folder of the script.
adaptiveResize($maxWidth,$maxHeight)->save($pathUrl);
}
header('Content-type: image/jpeg');
readfile($pathUrl);
?>