The classic PHP thumbnail generation program, based on the GD library, can specify the path to build and the width and height of the target usage method: In a PHP environment that supports the GD library, save the following code as a resize.php test
The classic PHP thumbnail generation program, based on the GD library, allows you to specify the build path and the width and height details of the build target.
How to use: In a PHP environment that supports the GD library, save the following code as a resize.php test
Copy CodeThe code is as follows:
$FILENAME = "Image_name";
Create the width of the picture
$RESIZEWIDTH = 400;
Height of the resulting picture
$RESIZEHEIGHT = 400;
Create a path to a picture
$uploaddir = "C:/winnt/temp";
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.