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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC