|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43243 trying to distinguish pngs from 32bit pngs
Submitted: 2007-11-11 11:26 UTC Modified: 2007-11-12 09:46 UTC
From: wesley dot gunn at email dot it Assigned:
Status: Not a bug Package: GetImageSize related
PHP Version: 5.2.5 OS: Windows XP Pro
Private report: No CVE-ID: None
 [2007-11-11 11:26 UTC] wesley dot gunn at email dot it
I don't know it is a real bug.. but i can't find nothing about this

when i try to get 32-bit png i get this array (read down)

maybe it's wrong, maybe not, i hope in your lightning reply

in case of not i'm sorry for your lost time

thanks in advance

Reproduce code:
$test = getimagesize("image.png");

Actual result:
    [0] => 1280
    [1] => 768
    [2] => 3
    [3] => width="1280" height="768"
    [bits] => 8
    [mime] => image/png


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-11 15:08 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2007-11-11 20:46 UTC] wesley dot gunn at email dot it
i mean

    [bits] => 8
    [bits] => 16
    [bits] => 24
    [bits] => 32
 [2007-11-12 09:46 UTC]
The function returns what's writtern in the file itself.
If it says 8bit, we can't fix it.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 25 16:01:26 2020 UTC