ID:               26688
 Comment by:       admin at 516homes dot com
 Reported By:      paul at i3 dot co dot uk
 Status:           Closed
 Bug Type:         GetImageSize related
 Operating System: slackware
 PHP Version:      4.3.4
 New Comment:

Hi,

Is there a way i could get some documentation on this snapshot as I am
trying to scale BMP's for several of my sites.  Most are only using jpg
submissions but I would like to use on something like
http://www.skinz.org for people uploading BMP's


Previous Comments:
------------------------------------------------------------------------

[2003-12-22 11:41:40] paul at i3 dot co dot uk

snapshot 4.3.5-dev resolves the problem tested with all 20 
each working correctly thanks Ilia.

------------------------------------------------------------------------

[2003-12-22 10:53:46] [EMAIL PROTECTED]

Please provide the bmp file in question.

------------------------------------------------------------------------

[2003-12-22 06:33:11] paul at i3 dot co dot uk

Description:
------------
Contrary to 4.3.4 change log

Fixed width/height detection of bmp images using 
getimagesize() function on big endian systems and added 
code to retrieve bmp bit depth. (Ilia)

I still receive incorrect output when querying a local 
.bmp.

Expected result:
----------------
When queried with imagemagick identify verbose returns

Image: example.bmp
  Format: BMP (Microsoft Windows bitmap image)
  Geometry: 800x560
  Class: DirectClass
  Type: true color
  Depth: 8 bits-per-pixel component
  Colors: 56670
  Filesize: 1312kb
  Interlace: None
  Background Color: white
  Border Color: #dfdfdf
  Matte Color: grey74
  Iterations: 0
  Compression: 
  signature: 
6b89fd02035b663968e3a0f127da0c0dc5e940e060446a21c40cb330
f0bbc5ce
  Tainted: False
  User Time: 0.0u
  Elapsed Time: 0:01

Tested with 20 or so similar sized bmp file same problem 
occurs.


Actual result:
--------------
 files output using getimagesize returns

array(5) {
  [0]=>
  int(36700960)
  [1]=>
  int(1572865)
  [2]=>
  int(6)
  [3]=>
  string(33) "width="36700960" height="1572865""
  ["mime"]=>
  string(9) "image/bmp"
}


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26688&edit=1

Reply via email to