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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 05:01:26 2019 UTC