Home PHP Libraries Picture library PHP upload class that automatically generates thumbnails
PHP upload class that automatically generates thumbnails

Introducing a PHP upload class that can automatically generate thumbnails for reference by friends who need it. The following will also introduce the ideas.

Start the first step:

Create folder, layout:
annex: Attachment (the original uploaded image is stored in this directory)
|— smallimg: store thumbnail images
|— mark: store watermark images
include: Store class files and fonts (this program code uses: 04B_08__.TTF)
|— upfile.php: Integrate simple upload, generate thumbnails and watermarked file information
|— 04B_08__.TTF: font file
Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Is there a PHP open source system like piwigo that supports psd upload and generate thumbnails? Is there a PHP open source system like piwigo that supports psd upload and generate thumbnails?

06 Jul 2016

Is there a PHP open source system like piwigo that supports psd upload and generate thumbnails? After using piwigo to build a picture sharing system, I found two problems: 1. The picture is too long and thumbnails cannot be generated. 2. The psd uploaded by ftp cannot generate thumbnails.

How to add a picture border to the picture and adapt the picture size_html/css_WEB-ITnose How to add a picture border to the picture and adapt the picture size_html/css_WEB-ITnose

24 Jun 2016

Please tell me how to add a picture border to the picture and adjust the picture size

[Emergency help] After the large picture obtains the small picture through coordinates, how to remove the border on the small picture? _html/css_WEB-ITnose [Emergency help] After the large picture obtains the small picture through coordinates, how to remove the border on the small picture? _html/css_WEB-ITnose

24 Jun 2016

[Emergency help] After the large picture obtains the small picture through coordinates, how to remove the border on the small picture?

CSS3 vertical mouse move to picture picture scrolling, graphic menu code_html/css_WEB-ITnose CSS3 vertical mouse move to picture picture scrolling, graphic menu code_html/css_WEB-ITnose

24 Jun 2016

CSS3 vertical mouse move to picture picture scrolling, graphic menu code

How to output multiple sizes of images in php How to output multiple sizes of images in php

06 Jul 2016

{Code...} The picture above is a picture with a width of 480 and a height of 270. Remove the suffix !w480h270 to access the original picture. Question: 1. How is this kind of picture usually stored on the server? Is it just the original picture? 2. Add the suffix !w480h270 to generate corresponding thumbnails. How thumbnails are generally stored...

When inserting a picture into td in html, why the picture cannot fill the entire td_html/css_WEB-ITnose When inserting a picture into td in html, why the picture cannot fill the entire td_html/css_WEB-ITnose

24 Jun 2016

When inserting a picture into a TD in HTML, why can’t the picture fill the entire TD?

See all articles