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
Votes:1
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: Closed 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:
 [2021-08-02 12:19 UTC] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/b0268930dc10db9a21b44dd3b35d24fd6d951792
Log: Fix #73587: Sample of imagemagic::getimagegeometry is irrelevant
 [2021-08-02 12:19 UTC] git@php.net
-Status: Verified +Status: Closed
 [2021-08-02 13:39 UTC] git@php.net
Automatic comment on behalf of mumumu
Revision: https://github.com/php/doc-ja/commit/735cdda454be9014a127345eb6f2ec9734c5fe7a
Log: Fix #73587: Sample of imagemagic::getimagegeometry is irrelevant
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC