Php can generate more thumbnails, and some problems are encountered.
Source: Internet
Author: User
Php can generate thumbnails more easily. if you have any questions, you may want to implement the function of uploading images and generating thumbnails. you have found the code disconnected from the Internet and succeeded. If you want to generate two images at a time-one large thumbnail and one small thumbnail, the following code is provided: Notice: Undefinedvariable: RESIZEWIDTHinD: \ WWW \ qia php can generate more thumbnails, if you have any questions, please refer
If you want to implement the function of uploading images and generating thumbnails, you can find the code disconnected from the Internet.
If you want to generate two images at a time-one large thumbnail and one small thumbnail, the following code is provided:
Notice: Undefined variable: RESIZEWIDTH in D: \ WWW \ qiangyuan \ up. php on line 17
Notice: Undefined variable: RESIZEWIDTH in D: \ WWW \ qiangyuan \ up. php on line 23
The source code is as follows:
//************************************** **
// Generate a thumbnail =============================================== ====
$ FILENAME = "product/min/". date ("YmdHis"); // small image file name
$ RESIZEWIDTH = 150; // The width of the generated image
$ RESIZEHEIGHT = 113; // The height of the generated image
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service