Home > Backend Development > PHP Tutorial > How to submit uploaded images and scale them to a specified folder

How to submit uploaded images and scale them to a specified folder

WBOY
Release: 2016-08-29 08:50:49
Original
1045 people have browsed it

When submitting an image on a php page, how to scale the image and keep only the scaled image? ? ?

Reply content:

When submitting an image on a php page, how to scale the image and keep only the scaled image? ? ?

First get the image from the uploaded file, and then use PHP's GD library to scale the image. After getting the scaled image, copy it to the specified folder.
In this operation process, it is a bit difficult to zoom in and out of pictures. There are functions/classes written by others on the Internet, such as php class-resizeimage class-picture generation thumbnails

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template