php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: duh at dowebwedo dot com
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

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

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 28 09:01:28 2024 UTC