php.net |  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
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: wesley dot gunn at email dot it
New email:
PHP Version: OS:

 

 [2007-11-11 11:26 UTC] wesley dot gunn at email dot it
Description:
------------
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");
print_r($test);

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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] tony2001@php.net
The function returns what's writtern in the file itself.
If it says 8bit, we can't fix it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC