Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2005
    Location
    UK
    Posts
    324

    Auto Resizing of an image

    I have a photo sharing/uploading website and i'm just trying to find as many bugs as I can before I officially open the website. I have come across this bug:

    I have a photo that is 279x272 in size. I tried uploading it and this message appears:

    Resize height must be numeric and positive for each one width and height

    I'm guessing that means the image is too small to upload? But how can I remove this restriction?

    My website can be seen here: http://bit.ly/kOq8Wb

    Any help is greatly appreciated.

  2. #2
    Join Date
    Aug 2002
    Location
    Superior, CO, USA
    Posts
    635
    My guess is that you have a corrupt image - the size data in it is messed up. Can you post a link to the image?

  3. #3
    Join Date
    Aug 2004
    Location
    Kauai, Hawaii
    Posts
    3,799
    Can you post the source file that is giving the error? As mentioned above it could just be a corrupt image rather than an error in your code. If it works on imageshack etc then your code needs to be improved.

    You can upload the original to putfile2.com or any other file share site that doesn't alter the original.

  4. #4
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,849
    Quote Originally Posted by WO Mark View Post
    Resize height must be numeric and positive for each one width and height
    (my bold)

    Sounds like a custom error message in your code, but if it's calculating a negative width or height just because the image you upload is smaller than usual, there's something seriously wrong with the calculation method. Look for that text in the code and you should be able to find where it's being triggered and the calculations leading up to it.
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  5. #5
    Join Date
    Sep 2005
    Location
    UK
    Posts
    324
    For some reason it has started working again? If I receive any more problems i'll post the file up.

    Thanks guys
    WO Hostings - Reliable and Affordable UK Web Hosting.
    Family run business providing a personal customer service.
    Web hosting packages with dedicated account managers.

  6. #6
    Join Date
    Jan 2011
    Location
    India
    Posts
    1,453
    Quote Originally Posted by WO Mark View Post
    For some reason it has started working again? If I receive any more problems i'll post the file up.

    Thanks guys
    what was the reason behind this can you please state it here so that we can figure out the which guess was right

  7. #7
    Join Date
    Sep 2005
    Location
    UK
    Posts
    324
    I honestly couldn't tell you. I had someone modify the upload file after I had posted here to include watermarks on images, he must of seen a problem and resolved it?
    WO Hostings - Reliable and Affordable UK Web Hosting.
    Family run business providing a personal customer service.
    Web hosting packages with dedicated account managers.

Similar Threads

  1. Page auto-resizing
    By antony_m in forum Web Design and Content
    Replies: 2
    Last Post: 06-26-2010, 01:48 PM
  2. Resizing an Image Proportionally
    By SmashedPumpkins in forum Web Design and Content
    Replies: 1
    Last Post: 12-09-2009, 04:19 PM
  3. Image resizing on website
    By ruts in forum Programming Discussion
    Replies: 7
    Last Post: 09-02-2009, 11:20 AM
  4. got some problems resizing an image...
    By fm78 in forum Web Design and Content
    Replies: 3
    Last Post: 06-20-2008, 10:47 AM
  5. image resizing
    By sasha in forum Programming Discussion
    Replies: 8
    Last Post: 06-02-2003, 08:47 PM

Posting Permissions

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