SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2007
    Location
    San Jose, California
    Posts
    355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Size Issues

    Is there anyway to determine the uncompressed image size? I am restricting the upload size of an image, but when i use gd library all the image create uncompress the image, and cause my script to run out of memory. Any suggestions on how I can determine the uncompressed size prior to my script crashing?

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at the user comments for the imagecreatefrom*() functions for code to estimate it.


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
  •