|  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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
50 - 49 = ?
Subscribe to this entry?

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

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)' 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-08 04:59 UTC]
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-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 25 20:01:29 2020 UTC