Doc #73587 [Ver->Asn]: Sample of imagemagic::getimagegeometry is irrelevant
| From: | kalle@php.net | Date: | Tue, 24 Oct 2017 05:26:05 +0000 |
| Subject: | Doc #73587 [Ver->Asn]: Sample of imagemagic::getimagegeometry is irrelevant | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15130@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73587&edit=1
ID: 73587
Updated by: kalle@php.net
Reported by: mail at niph dot info
Summary: Sample of imagemagic::getimagegeometry is irrelevant
-Status: Verified
+Status: Assigned
Type: Documentation Problem
Package: imagick
PHP Version: Irrelevant
Assigned To: danack
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-11-23 10:50:05] cmb@php.net
This issue is not particularly related to the Russian translation.
------------------------------------------------------------------------
[2016-11-23 08:36:53] mail at niph dot info
Description:
------------
---
From manual page: http://www.php.net/imagick.getimagegeometry
---
sample script in getimagegeometry doesn't include that function
"function getImageGeometry($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}" this is the sample.
Yu can use
function getImageGeometry($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
return $imagick->getImageGeometry();
}
as example
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73587&edit=1