Practical use to get the dimensions of the image:
<?php
$image = new Imagick($image_src);
$d = $image->getImageGeometry();
$w = $d['width'];
$h = $d['height'];
?>
PHP.mk документација
Imagick::getImageSize
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
imagick.getimagesize.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
imagick.getimagesize.php
Imagick::getImageSize
Референца за `imagick.getimagesize.php` со подобрена типографија и навигација.
Imagick::getImageSize
(PECL imagick 2, PECL imagick 3)
Imagick::getImageSize — Returns the image length in bytes
Ги ескејпува специјалните знаци во стринг за употреба во SQL изјава
Оваа функција е DEPRECATED Извршува нарачано дитерирање
= NULL
Returns the image length in bytes. Deprecated in favour of Imagick::getImageLength()
Параметри
Оваа функција нема параметри.
Вратени вредности
Returns an int containing the current image size.
Белешки од корисници 5 белешки
Ricardo Cordts Monteiro ¶
пред 16 години
benford at bluhelix dot com ¶
пред 16 години
Try Imagick::getSize, Imagick::getImageWidth, or Imagick::getImageHeight if you are looking to get dimensions in pixels (rows, columns) of the current image.
murphy(at)murphyslantech(dot)de ¶
пред 15 години
If you get an error or warning (when using strict settings for PHP), telling you, that this function should not be used anymore try getImageLength() instead ...
nikolaus ¶
пред 16 години
If you're planning to stream imagick images via http, pay attention that this function may return the uncompressed image size, so it's not directly suitable for setting the content-length http header.
perching_eagle на yahoo точка ком ¶
пред 18 години
/* get the size of the image in bytes */
$image=new Imagick("c:/htdocs/rose.jpg");
$size=$image->getImageSize();
print "the size of the picture is ".$size." bytes";
result
the size of the picture is 3461 bytes