|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73587 Sample of imagemagic::getimagegeometry is irrelevant
Submitted: 2016-11-23 08:36 UTC Modified: 2017-10-24 09:45 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: mail at niph dot info Assigned:
Status: Verified Package: imagick (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mail at niph dot info
New email:
PHP Version: OS:


 [2016-11-23 08:36 UTC] mail at niph dot info
From manual page:
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-23 10:50 UTC]
-Summary: Sample on the russian version of imagemagic.getimagegeometry is irrelevant +Summary: Sample of imagemagic::getimagegeometry is irrelevant -Status: Open +Status: Verified
 [2016-11-23 10:50 UTC]
This issue is not particularly related to the Russian translation.
 [2016-12-20 23:43 UTC]
-Assigned To: +Assigned To: danack
 [2017-01-28 14:07 UTC]
-Package: Documentation problem +Package: imagick
 [2017-10-24 05:26 UTC]
-Status: Verified +Status: Assigned
 [2017-10-24 09:44 UTC]
-Status: Assigned +Status: Verified
 [2017-10-24 09:44 UTC]
Unassigning - anyone can work on documentation.
 [2017-10-24 09:45 UTC]
-Assigned To: danack +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jul 27 15:01:23 2021 UTC