Results 1 to 7 of 7
Thread: Auto Resizing of an image
-
05-09-2011, 06:17 AM #1Web Hosting Guru
- 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.
-
05-09-2011, 05:50 PM #2Web Hosting Master
- 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?
-
05-09-2011, 07:29 PM #3Corporate Member
- 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.
-
05-09-2011, 08:54 PM #4Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
(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
-
05-10-2011, 01:35 AM #5Web Hosting Guru
- 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.
-
05-10-2011, 01:45 AM #6Disabled
- Join Date
- Jan 2011
- Location
- India
- Posts
- 1,453
-
05-10-2011, 01:46 AM #7Web Hosting Guru
- 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
-
Page auto-resizing
By antony_m in forum Web Design and ContentReplies: 2Last Post: 06-26-2010, 01:48 PM -
Resizing an Image Proportionally
By SmashedPumpkins in forum Web Design and ContentReplies: 1Last Post: 12-09-2009, 04:19 PM -
Image resizing on website
By ruts in forum Programming DiscussionReplies: 7Last Post: 09-02-2009, 11:20 AM -
got some problems resizing an image...
By fm78 in forum Web Design and ContentReplies: 3Last Post: 06-20-2008, 10:47 AM -
image resizing
By sasha in forum Programming DiscussionReplies: 8Last Post: 06-02-2003, 08:47 PM