php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44637 Problem with first use of imagefill
Submitted: 2008-04-04 11:21 UTC Modified: 2008-04-14 09:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dpenezic at srce dot hr Assigned: pajoye (profile)
Status: Not a bug Package: GD related
PHP Version: 5.2.5 OS: Fedora Core 4
Private report: No CVE-ID: None
 [2008-04-04 11:21 UTC] dpenezic at srce dot hr
Description:
------------
After loading image with imagecreatefrompng, seting colore with imagecolorallocate , and invoking first imagefill result with no effect (return code is TRUE). Next imagefill work correctly.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-04 11:39 UTC] pajoye@php.net
I don't understand what you are trying to describe. Please provide a small script to reproduce your problem and add links to images if you need image to illustrate the problem or to show what you would like to achieve.
 [2008-04-04 12:01 UTC] dpenezic at srce dot hr
Basic code :

<?PHP
  
 $image = @imagecreatefrompng('some/some/some.png');

 if ($image === false) {
        die ('Unable to open image');
 }
 
 $color = imagecolorallocate($image, 0, 0, 0);
 imagefill($image, 200, 200, $color);

# Nothing happend on image after thiss command

# From this point on everything work correctly
  imagefill($image, 500, 500, $color);
  
  header("Content-type: image/png");
  header("Content-Disposition: inline; filename=map.png");
  imagepng($image);
  
?>

I have map of country and fill some section with color, then show image in browser.
 [2008-04-04 12:07 UTC] pajoye@php.net
Please provide the file 'some/some/some.png'

What does that mean:

# Nothing happend on image after thiss command

# From this point on everything work correct
...

I really need a script to *reproduce* your problem.

 [2008-04-04 12:20 UTC] dpenezic at srce dot hr
Sent to your email address
 [2008-04-14 09:43 UTC] pajoye@php.net
Not a but, not able toreproduce.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 21:01:31 2024 UTC