SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: get image size

  1. #1
    SitePoint Zealot sajjad's Avatar
    Join Date
    May 2005
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    get image size

    hi,
    can anybody tell me how to get the size of image using javsacript that can run both on IE,FF and safari.

    i want to check if the image is greater than 2mb of size it should give an alert message to user

    thanks,
    If you lose your patience you lose half of battle

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this part of an image upload?, or when the image is already on the server?


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
  •