Thread: GetImageSize()

    #1
  1. No Profile Picture
    teozhiwe
    Guest
    Devshed Newbie (0 - 499 posts)
    The GetImageSize() Function in PHP is useful for resizing images proportionally onto a webpage.

    However, I have only managed to use that function successfully on image files that are on local drive.
    eg. ImgArr=GetImageSize("/img/myfile.gif");

    The function doesn't seem to work when I tried to use a hyperlinked image file.
    eg. ImgArr=GetImageSize("http://www.someurl.com/myfile.gif");

    Is there anyway in PHP where I can get the height and width of remote image files?

    Appreciate any help.
  2. #2
  3. No Profile Picture
    Paul Cotton
    Guest
    Devshed Newbie (0 - 499 posts)
    As a low-tech workaround, you could copy the file to your local temp directory and process it there, then delete it.

    Like I said, low-tech but it will work if there are no better options given.

Similar Threads

  1. Timeout getimagesize
    By Rostor in forum PHP Development
    Replies: 4
    Last Post: January 6th, 2004, 07:04 AM
  2. problem with getimagesize()
    By Parallel in forum PHP Development
    Replies: 1
    Last Post: November 9th, 2003, 04:22 PM
  3. Problems with getimagesize
    By dennisb in forum PHP Development
    Replies: 4
    Last Post: July 8th, 2003, 02:48 PM
  4. GetImageSize() behind a firewall??
    By metalcrypt in forum PHP Development
    Replies: 0
    Last Post: October 9th, 2002, 03:00 PM
  5. GetImageSize() vs. MySQL Query for image height/width
    By L0stPack3t in forum PHP Development
    Replies: 16
    Last Post: December 23rd, 2001, 12:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo