php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30247 ImageColorAt peculiarity
Submitted: 2004-09-27 00:55 UTC Modified: 2004-09-27 01:47 UTC
From: sinthetik at comcast dot net Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.8 OS: host: linux, client: windows
Private report: No CVE-ID: None
 [2004-09-27 00:55 UTC] sinthetik at comcast dot net
Description:
------------
When using ImageColorAt to find the color of a pixel within an image it returns the correct value in IE & Mozilla, but in Opera its null. It appears to not be dependant on the format of the resource image.

Reproduce code:
---------------
$rgb = ImageColorAt($im, $x, $y);

Expected result:
----------------
$rgb should contain the values of the pixel at those coordinates.

Actual result:
--------------
$rgb is null.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-27 00:58 UTC] sinthetik at comcast dot net
Opera 7.23
IE 6
Firefox 0.93
 [2004-09-27 01:47 UTC] rasmus@php.net
Sorry, but that is simply not possible.  PHP is server-side and is in no way affected by the type of browser sending the request in a function like ImageColorAt assuming the image in question is the same under all the browsers.  Your error must be elsewhere.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 16:00:02 2026 UTC