SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question getting image size values

    I've made a script that "sometimes" retrieves the width and height of a preloaded image, but it doesn't always work.
    The intent was to select thumbnails from my webpage and open a new window that was the precise size of the larger image file.
    About 20%, it works. I think IE caching is helping me without my knowledge.

    Does anybody know a reliable way to get size info from an image file?

    thanks,

    Tesp.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Skyzyx and I collaborated on this script, which does what you're after.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Member
    Join Date
    Sep 2003
    Location
    USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Beetle,

    This is very similar to what I have, so this confirms my approach. Perhaps I can now understand what I did wrong.

    Tesp


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •