PDA

View Full Version : resize image



sultanglamor
04-10-2008, 04:12 AM
how we can resize image using php in order to minimum or page load?

djr33
04-10-2008, 04:21 AM
PHP can resize images.

Function, information and examples here:
http://www.php.net/manual/en/function.imagecopyresampled.php

I do not understand your question-- "...to minimum or page load"


NOTE: I recommend SAVING that image, and then using that file for every visitor. Resizing an image is slow, and it is a lot of work for the server. You can have it automatic (from an admin page, or when you upload the image), but have that image save, not regenerate every time you view the page.