PHP Batch generation picture thumbnails (1/5) _php Tutorial

Source: Internet
Author: User
PHP Batch generation image thumbnails This batch generated thumbnail code can generate a small map of a specified size Oh, and support file batch upload.

PHP tutorial Batch generate picture thumbnails
This batch generated thumbnail code can generate a small graph of a specified size, and supports batch upload of files.

This tutorial will use PHP files
view.php
config.php
funs.php
index.php


Function:
-----------------------
1. Generate a specified size thumbnail for a picture in a folder
2. List sub-folders, you can specify a folder to create
3. To facilitate different size of the thumbnail generation, the picture is saved to a new directory, and the directory structure is unchanged

Realize:
-----------------------
1. Picture Original folder $image
2. Save in $newimage after processing
Keep directory structure and file name unchanged (easy to call)
3. If the picture already exists in the new folder, skip directly

Operating interface:
-----------------------
1. $image Input Box
2. $newimage input box (if not filled in, just for the current directory of the same size as the thumbnail file name of the directory)
3. Click "Search", List all folders, generate cache, write to file.
4. Generate. Creating subdirectories

*/
?>
index.php Code





Generate thumbnails


!--? php
/* +-------------------------------------------------------------+
* | Copyright (c) 2008 -2009 yese.in All rights reserved.
* +-------------------------------------------------------------+
* | Author:wbsifan
* +-------------------------------------------------------------+
* | filename:index.php v0. 1
* | update:2008-07-01
* | content: Generate thumbnail image
* +------------------------------------------------ -------------+
*/1 2 3 4 5

http://www.bkjia.com/PHPjc/444889.html www.bkjia.com true http://www.bkjia.com/PHPjc/444889.html techarticle php Batch generation image thumbnails This batch generated thumbnail code can generate a small map of a specified size Oh, and support file batch upload. PHP tutorial Batch generation picture thumbnail this batch ...

  • 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.