php.net |  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
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:
Package:
Bug Type:
Summary:
From: mail at niph dot info
New email:
PHP Version: OS:

 

 [2016-11-23 08:36 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-23 10:50 UTC] cmb@php.net
-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] cmb@php.net
This issue is not particularly related to the Russian translation.
 [2016-12-20 23:43 UTC] danack@php.net
-Assigned To: +Assigned To: danack
 [2017-01-28 14:07 UTC] cmb@php.net
-Package: Documentation problem +Package: imagick
 [2017-10-24 05:26 UTC] kalle@php.net
-Status: Verified +Status: Assigned
 [2017-10-24 09:44 UTC] danack@php.net
-Status: Assigned +Status: Verified
 [2017-10-24 09:44 UTC] danack@php.net
Unassigning - anyone can work on documentation.
 [2017-10-24 09:45 UTC] danack@php.net
-Assigned To: danack +Assigned To:
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Nov 16 21:01:32 2019 UTC