• Photo appears corrupt on website

    Home » Forums » Developers, developers, developers » Web design and development » Photo appears corrupt on website

    Author
    Topic
    #418155

    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

    Viewing 0 reply threads
    Author
    Replies
    • #940304

      Never seen this, so I admit I’m fishing. Is it possible that it DID get garbled when you uploaded it? How about deleting it from your domain and uploading another copy – are you on dialup? Sometimes modems do strange things.

      • #940361

        I have tried this. I will try re-naming then upload the files.

        Thanks.

        • #940363

          If a new copy of the file with the same name hasn’t made any difference, it may be because the original version is still in your browser cache. Try clearing the cache, and/or hold down CNTRL while you click on Refresh.

          • #940364

            This appears to do nothing. I will re-ftp files.

            • #940376

              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…
              shrug

            • #940379

              I am using Ace ftp.

              The file size is larger also with photos l am uploading, as l am using a higher resolution camera. Maybe l will change the camera resolution to a lower one next time
              l take photos for the website.
              Thanks for that advice.

            • #940380

              I have tried to re-upload the photos but no luck. I have an idea and that is to re-name the files so there are no spaces and see if that works.
              Have you tried this?

              Justin.

            • #940381

              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… crossfingers

            • #940388

              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.

            • #940481

              Here in the Lounge, it is displayed at its full size. I wonder whether Dreamweaver is automatically downsizing the image, and messing it up in the process?

            • #940574

              [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.

            • #940588

              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.

            • #940591

              [indent]


              …because the image was posted, not linked to the original…


              [/indent] You’re right, as I tried to visit Justin’s site he’s mentioned in other threads and I can’t find the picture. I guess we’ll have to wait until he responds to these hypotheses.

            • #941866

              I will post the photo on the Lounge tommorow.
              I don’t think it could be a problem with HTML as it is happening with 2 websites.

              Justin.

            • #941316

              What’s happenin’ Justin? Never heard back from you on this problem and my curiosity is piqueued.

            • #941650

              I am in the process of renaming these files so there are no spaces and l will see if this works.
              I will then re-ftp the files.

              When l have done this l will let you know if it works.

              Justin

            • #941843

              (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.

              website: http://www.clubsouthampton.com[/url%5D

            • #941844

              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).

            • #941845

              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.

            • #941847

              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….

            • #941848

              That is a good point, maybe l should upgrade my ftp program what do you think, as the version l have might be out of date.

              Justin

            • #941849

              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.)

            • #941850

              I don’t have access to an ftp package with my ISP, l think all l can do is to try another ftp package and see what happens.

              Justin.

            • #941865

              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?

            • #941868

              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. shrug

            • #941877

              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.

            • #941879

              Will do. The pic is on my home PC and I’m at work right now, so I won’t be able to do that for a while.

              Cheers,

            • #941969

              Home sweet home…

              Ok, here goes.

            • #941973

              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.

            • #941996

              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

            • #942075

              Yep, there’s definitely nothing wrong with the picture on your web. Maybe I should contact my ISP to see if they can shed any light.

            • #942082

              Well, be sure you do try another FTP program as that’s easy to do.

            • #942042

              Does your FTP client have the option of choosing between ASCII and BINARY? If so, try the one you haven’t tried and see if that helps.

            • #942219

              Blinding!! I think we’re there! bananas

              Here’s the version I uploaded in ASCII mode – same as before. But here is the binary version – little Barney in all his glory.

              clapping cheers mice music laugh thankyou salute

            • #942234

              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.

            • #942243

              You said blinding and I’ll say Blimey! Good thing Jefferson made that suggestion – I thought all FTP programs were binary in default. Way To Go, Dave!

            • #1127085

              thats great l will try that, thanks

    Viewing 0 reply threads
    Reply To: Photo appears corrupt on website

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: