PHP batch image scaling preview

Source: Internet
Author: User
Tags imagejpeg
PHP batch image scaling preview question? 1. read the image from a folder. & Nbsp; 2 read the image to the memory, scale according to a certain algorithm, and generate a $ image object. 3. create a form next to each image, enter the image name, category, and other information, and store the information in the database. 3. how does one display the content on the web page? & Nbsp; // This method can only display PHP batch image scaling and preview problems?
1. read the image from a folder.

2. read the image to the memory and scale according to a certain algorithm to generate a $ image object.

3. create a form next to each image, enter the image name, category, and other information, and store the information in the database.


3. how does one display the content on the web page?

// Only one image can be displayed in this way. I want to read N images.
Header ('content-type: image/jpeg ');
Imagejpeg ($ dstimage, null, 100 );

-------------------------------------------------------
One way is to say:
But I didn't write this? In the action, the header ('content-type: image/jpeg '); imagejpeg ($ dstimage, null, 100); is this done?
--------------------

Is there any way? Just give an article link. I have completed image scaling and file operations.

------ Solution --------------------
One way is to say:
In action = imagepreview, read the specified image file according to the filename parameter.
------ Solution --------------------
No batch exists, unless physical images are generated

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.