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

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

WBOY
WBOYOriginal
2016-06-13 10:11:08970browse

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

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

Statement:
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