For some odd reason this photo appears to be corrupt on my website.
Any ideas as to the cause of this?
It looks fine when l view it in photoshop and Dreamweaver
see attachment.
Justin
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » Developers, developers, developers » Web design and development » Photo appears corrupt on website
If it’s any consolation, I have exactly the same problem with photos on my website. The originals are fine, but when uploaded to the web server, they become corrupt in much the same way as yours have. Re-uploading the files is on my to-do list but I haven’t tried it yet. The problem seems worse with larger pictures, and the corruption is always in the form of horizontal banding, like in the picture you displayed. (More examples here if that helps).
Out of interest, are you using any fancy ftp software? Personally I’m not, I’m just using the DOS-like ftp program built into Windows. I’m wondering if this might be the cause of the problem, but I would have thought that keeping it simple by using this would avoid such problems, rather than cause them…
As it happens, none of the file names of my photos have spaces in. It may be worth clearing your cache though to make sure that your browser isn’t looking at a stored version of the old image. (Altenatively, go ahead and rename the file, as this would also solve this problem).
Fingers crossed…
Good morning fellas. Say, I just had a thought that I have no basis in technical knowledge for. You BOTH mentioned the large, high resolution of the pictures but the examples (here in the thread and on Dave’s web) show properties as a smaller size than I would consider “large.” Do you possibly have an HTML rendering problem where the actual pixture might be large, such as 1600 x 1200, but the HTML code of the page used to display it is rendering the picture at a much smaller size? I don’t know what would happen if one were to cross some hidden barrier of conversion.
[indent]
…it is displayed at its full size…
[/indent] Yeah, that’s what I meant by high resolution. I was prompted by Dave’s comment and the display size of the pictures on HIS web page. The picture here in the Lounge is 490 x 368 and 24 bit and that’s not what I would consider high resolution. But I don’t know what would happen if the ACTUAL pictures he uploaded were considerably larger and being rendered to some smaller size by the HTML code on the web page. What made me think of it is the fact that I have two pictures of my grandsons on my web page and when I uploaded them they are 200 x 200 but the code I wrote for my web page specifies the sizes at 175 x 175. Obviously this doesn’t distort the images but I wonder what would happen if the size difference were much more extreme.
Here’s an example. The very first pix on Dave’s web page shows a web property of 300 x 276 but if I save the shot, it is 559 x 514.
I agree, setting the width and height in the IMG tag to anything other than the actual width and height can lead to strange results. In this case, unfortunately, the file itself has a problem, so I think the poster will have to fix that first before turning to any other potential issues raised by the HTML.
Added: Okay, I shouldn’t be so certain, because the image was posted, not linked to the original. It would be useful to get the URL to the original to confirm how it appears to others.
(Edited by Leif to make link live – see the quick guide and/or Help 19)
Hi,
I appear to be getting the photo probem yet again on another website.
This is very odd indeed as the file name has no spaces.
I am totally baffled as to why this is!
If you vist and look in the photo album section and click on the Southampton Common photo you will see what l mean.
If you click on the thumbnail and see the enlarged photo you will what l mean.
The only thing l can think of doing is to-ftp the photo again, any other suggestions as to what could be wrong?
Any help would be greatly appreciated.
Regards
Justin.
Can you confirm that the local copy of the image files view OK in your browser (not graphics prog) immediately before uploading?
Can you confirm the file sizes of the local and uploaded images are identical?
If yes to both, I would try uploading the same image as files of various sizes to see if there is a point at which they become corrupt (i.e. below 20K is OK, above is corrupt).
I can confirm that the files view properly locally before uploading.
I cannot confirm the files sizes of the local and uploaded images are identical.
If they are different what would this indicate?
I am a bit confused as to how a file can be corrupt if it is uploaded in a different size? Is there any cause for this?
Justin.
Viewed from within your browser for consistencey, right-click on the local and uploaded files and select properties – this should give you the sizes.
I think we are all confused as to why you are getting corruption in the first place! The ‘thumbnail’ – which is about 6K seems fine, the larger version – about 2K – isn’t. I was just wondering if your ftp prog may have a problem with files over a certain size….
I’d be surprised if it was simply a matter of age, but it would certainly do no harm to try out another ftp program.
(With my ISP, I have access to a control panel which allows me to upload files using an ‘Explorer’ type interface. I would check to see if you can do the same and see what results you get.)
More wondering from me! When I follow your link and look at the corrupt photo, it’s properties tell me it’s 397 x 228 pixels and 27,549 bytes in size. Could you please try to put the photo, from your HARD DRIVE, not the web, into an attachment to your next post so we can see if it will display OK here in The Lounge? Since the max. file size here is 100k it shoud work OK as an attachment. I’m curious to see what the properties are on the file as it appears on your hard drive.
Also, since you have other photos up there that did not get damaged, I’m wondering if all that recent work you did with frames and/or stylesheets in another thread may have done something to the code of your HTML that’s causing this whole problem. Do you have, or could you create, another “plain vanilla” web page with no frames or stylesheets that you could upload the photo to for a trial run?
The html is definitely a red herring. The pictures themselves are corrupt, it’s nothing to do with html code. You can see for yourself by looking at one of the raw images: puppy01.jpg (JPEG Image, 559×514 pixels).
Out of interest, Justin, what ISP do you use? I use Freenetname. If we happen to use the same one, perhaps the problem lies with them.
I don’t know what the answer will be, Dave, especially in light of the fact that the problem could obviously be different for both you and Justin. Let me ask you to put that doggie picture as an attachment to a post in this thread, as I asked Justin – from your HARD DRIVE, not the web site. If it will display OK here, I want to save a copy and upload it to my web site to see if I can get that far. Not too sure if that will narrow the hunt down to any more than you both have surmised – the ftp program or the ISP. I’d just like to try it with a good copy of the photos.
Interestingly, I’ve just tried uploading the file again, to a different location. Not only did I get the same kind of distortion, I got it in exactly the same place on the picture. The two uploaded versions of the picture look exactly the same – but there’s nothing wrong with the source pic as you can see above.
OK Dave, thanks for hangin’ in there. I saved the pix from here in the thread, did nothing to it but modify the name and uploaded a copy to my web domain. Go here: http://www.alhoffman.org/dave_puppy.jpg%5B/url%5D and if you can see that little guy without the “pixelization” we will at least know the problem IS either the ftp program or your ISP. BTW, I use CuteFTP Pro. Lemme know what you see…
Edited later: Just in case you want to try it, I think Globalscape has a trial download of either of their CuteFTP programs (Home or Pro). Here: GlobalSCAPE – FTP Clients
Another thing to check is whether to use Passive FTP mode. I think Windows-based servers require one way and *nix (Unix/Linux) require another. I cna’t remember which goes with which.
Although, I doubt the passive mode would have any bearing on creating a corrupted image. At worst, it would cause the transfer to fail.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications