Home > Backend Development > PHP Tutorial > 批量获取图片

批量获取图片

WBOY
Release: 2016-06-23 14:16:27
Original
889 people have browsed it

图片 php 

我想问一下。。有一个文件夹将近 20G,里面都是图片,,我想得到所有图片高度大于一下数的图片。。。。。而且速度要快。

回复讨论(解决方案)

$p = 'images';$ite = new RecursiveDirectoryIterator($p);foreach (new RecursiveIteratorIterator($ite) as $filename=>$cur) {  if(is_dir($filename)) continue;  echo getimagesize($filename)[1];}
Copy after login

还需要做什么?自己决定

你这是输出所有图片的高度。。。。。而不是限制在一定高度的图片

你这是输出所有图片的高度。。。。。而不是限制在一定高度的图片
你难道要让他都给你写出来吗?

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