php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #58879 newimage method
Submitted: 2009-10-05 13:03 UTC Modified: 2009-12-24 07:40 UTC
From: info at tommasomascherin dot it Assigned:
Status: Closed Package: gmagick (PECL)
PHP Version: 5.2.7 OS: lnx
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at tommasomascherin dot it
New email:
PHP Version: OS:

 

 [2009-10-05 13:03 UTC] info at tommasomascherin dot it
Description:
------------
Hi,
i can't use the "newimage" method, in the documentation:

http://www.php.net/manual/en/gmagick.newimage.php

I use the code i've pasted into the "reproduce code box", see bellow.


this example works with imagick, but with gmagick it give me an fatal error :

Fatal error: Uncaught exception 'GmagickException' with message 'Unable to open file ( #000000)' 

I've tried with some other possibilities, i've also readed the c code of this extension, but i can't use the "newimage" function ....

Reproduce code:
---------------
$obj = new Gmagick();
$obj->newimage(100, 100,'#000000',"png");
$obj->writeImage( "custom.png" );

Expected result:
----------------
it have to create an 100px X 100px BLACK png image.

Actual result:
--------------
Fatal error: Uncaught exception 'GmagickException' with message 'Unable to open file ( #000000)' 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-08 04:59 UTC] mkoppanen@php.net
Can you test with trunk version ?
 [2009-10-08 06:01 UTC] info at tommasomascherin dot it
i can't isn't my own server, and i've to pay for other changes 
... so if you tell me is fixed i can upgrade to the trunk 
version ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC