Page 1 of 1
File Upload's, fuzzy appearance!
Posted: Wed Jul 28, 2004 1:48 pm
by Joe
I have a code which allows you to upload picture files and it works great however, when an image is uploaded and viewed it does not look the way it should. By that I mean colours are all smudged and the picture is fuzzy.
Can anyone please tell me why this is happening?
Posted: Wed Jul 28, 2004 2:25 pm
by feyd
are you resizing or resampling the image? depending on what you do with it, it could get mangled a bit.. Some other binary data may have crept into the binary stream as well..
Posted: Wed Jul 28, 2004 2:33 pm
by Joe
OK Thanks feyd, the image is not resized or resampled at all so I am curious :O
Documents etc seem to upload fine its only when I upload an image the fuzziness occurs.
Posted: Wed Jul 28, 2004 2:36 pm
by feyd
so it's a straight upload. hmm.. can you post an example of the before and after?
Posted: Wed Jul 28, 2004 2:46 pm
by Joe
BEFORE
AFTER

[/img]
Posted: Wed Jul 28, 2004 2:57 pm
by feyd
looks like the data got corrupted in transfer or something.. the uploaded image (image.jpg) is 9K larger than the original image (image1.jpg).. looking at the diff, there's only data added to image.jpg.. interesting..
Posted: Wed Jul 28, 2004 3:00 pm
by Joe
Yes indeed, I have made many upload handlers and this is the first I have ever seen of this problem!
Posted: Wed Jul 28, 2004 3:43 pm
by ol4pr0
Could be somehow that the upload was not complete.. or the server/ client connection glitched for a moment cuasing it to be only partially uploaded. as feyd said it got corrupted, which is not so strange @ all. seen many transfers go corrupt. Never with webupload but seen enough with ftp transfers.
nothing you can do about that i am afraid.
Posted: Wed Jul 28, 2004 4:21 pm
by Joe
Well I have made many upload scripts and they all work perfect. I have tried uploading again and again wuth the exact same results so I am thinking the customers server has something wrong with it.
Posted: Wed Jul 28, 2004 4:25 pm
by brandan
looks like what happens to an image when you don't enable binary transaction for an ftp connection.
Posted: Wed Jul 28, 2004 5:13 pm
by d3ad1ysp0rk
What's your upload code look like?
Posted: Thu Jul 29, 2004 8:47 am
by Joe
It's ok now, thanks alot everyone. The problem was due to a simple server maintinence and all is working well now
