Doc #73587 [Opn->Ver]: Sample of imagemagic::getimagegeometry is irrelevant
| From: | cmb@php.net | Date: | Wed, 23 Nov 2016 10:50:06 +0000 |
| Subject: | Doc #73587 [Opn->Ver]: Sample of imagemagic::getimagegeometry is irrelevant | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14134@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: cmb@php.net
Reported by: mail at niph dot info
-Summary: Sample on the russian version of
imagemagic.getimagegeometry is irrelevant
+Summary: Sample of imagemagic::getimagegeometry is irrelevant
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This issue is not particularly related to the Russian translation.
Previous Comments:
------------------------------------------------------------------------
[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