The php getimagesize function obtains image width and height information

WBOY
Release: 2016-07-25 08:51:38
Original
1118 people have browsed it
  1. $images_array = array("http://static.zend.com/img/logo.gif");
  2. foreach($images_array as $image)
  3. {
  4. list($width, $height, $type, $attr) = getimagesize($image);
  5. $new_height = (int)(192 / $width * $height);
  6. echo '
  7. ';
  8. }
复制代码


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