|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10880 In some cases GetImageSize(image) does not return image dimensions
Submitted: 2001-05-15 10:57 UTC Modified: 2001-05-16 00:53 UTC
From: duh at dowebwedo dot com Assigned:
Status: Closed Package: GetImageSize related
PHP Version: 4.0.5 OS: Debian GNU/Linux 2.2r3 potato
Private report: No CVE-ID: None
 [2001-05-15 10:57 UTC] duh at dowebwedo dot com
This is the configstring of the server running potato r3 and php 4.0.5:

'./configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-track-vars' '--enable-trans-sid' '--with-mcrypt=../libmcrypt-2.4.10' '--disable-posix-threads' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-ttf=/usr/local/include/freetype2' '--enable-shared' '--enable-gd-imgstrttf' '--enable-versioning' '--enable-magic-quotes'

As GetImageSize didn't work on a specific JPEG image I tried the same image on another server running Debian GNU/Linux Woody and php 4.0.4pl1 with the following configstring:

'./configure' '--with-apache=../apache_1.3.19' '--with-unixODBC=/usr/local' '--with-mysql=/usr/local/mysql' '--enable-track-vars' '--enable-gd-imgstrttf' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-ttf=/usr/include/freetype' '--enable-trans-sid' '--with-mcrypt' '--enable-debug'

And on that server the GetImageSize() function just returned the image dimensions as you would suspect..

ImageMagick's identify returns the following information on the image:
Image: sicko.jpg
  format: JPEG (Joint Photographic Experts Group JFIF format)
  type: true color
  class: DirectClass
  matte: False
  colors: 117318
  geometry: 1024x768
  depth: 8
  filesize: 98kb
  interlace: None
  background-color: gray74
  border-color: gray74
  matte-color: gray74
  compression: JPEG
  runlength packets: 639759 of 786432
  tainted: False
  signature: 96e8d70ecf6d1784d27f801c39ec7bc5


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-16 00:53 UTC]
Should be fixed in CVS now.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 09:01:30 2024 UTC