Home > Backend Development > PHP Tutorial > php将/data/www/site1/image目录中的图片文件缩小成800*600像素的图片解决方法

php将/data/www/site1/image目录中的图片文件缩小成800*600像素的图片解决方法

WBOY
Release: 2016-06-13 10:11:08
Original
983 people have browsed it

php将/data/www/site1/image目录中的图片文件缩小成800*600像素的图片
php将/data/www/site1/image目录中的图片文件缩小成800*600像素的图片

------解决方案--------------------
1:目录操作,查找图片文件
2:对图片文件使用imagecopyresized(),imagecopysampled()

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