Doc #73587 [Ver->Csd]: Sample of imagemagic::getimagegeometry is irrelevant
Edit report at https://bugs.php.net/bug.php?id=73587&edit=1
ID: 73587
Updated by: git@php.net
Reported by: mail at niph dot info
Summary: Sample of imagemagic::getimagegeometry is irrelevant
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: imagick
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/b0268930dc10db9a21b44dd3b35d24fd6d951792
Log: Fix #73587: Sample of imagemagic::getimagegeometry is irrelevant
Previous Comments:
------------------------------------------------------------------------
[2017-10-24 09:44:48] danack@php.net
Unassigning - anyone can work on documentation.
------------------------------------------------------------------------
[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
Thread (5 messages)