barnum — 2012-09-10T11:58:15-04:00 — #1
This is my index page, and I want to change the photo....
I have an image in my images folder, and it is a jpg, but no matter how hard I try it just does not show up? The
photo name here in the original is Stoutstandards3.jpg, and the one I want to change to is Stout89.jpg. Any ideas why this will not work?
technobear — 2012-09-10T12:19:27-04:00 — #2
When I try to look for www.stoutstandards.com/images/Stout89.jpg I get a 404 "Not Found" error, so there's a problem somewhere. Either the image hasn't uploaded correctly to your image folder, or there's an error in the filename. Check that it really is calledStout89.jpg, and not Stout89.jpeg, Stout89.JPG, stout89.jpg or some other minor difference in case or spelling.
barnum — 2012-09-10T12:46:42-04:00 — #3
Seems like any photo I substitute will not show? I am completely baffled. I checked out the name, type of file, etc.. and like I said
no matter what I choose from my image file does not show up. Just the one photo only?
technobear — 2012-09-10T12:52:28-04:00 — #4
Are you sure you've uploaded them correctly to your images folder? I find it's quite easy to accidentally upload things to the wrong place. :)
barnum — 2012-09-10T13:21:32-04:00 — #5
Yep....haven't a clue. Tried fifteen different images just to see if they would work and they do not.....
This one is what I have had up, and it works fine
<img src="http://www.stoutstandards.com/images/Stoutstandards3.jpg" width="800" height="600">
When I substitute any jpg photo in place of Stoutstandards3...nothing! I checked image Stout89.jpg and can't find an error.
technobear — 2012-09-10T13:27:20-04:00 — #6
If I visit www.stoutstandards.com/images/Stoutstandards3.jpg, I see your existing picture. However, if I visit www.stoutstandards.com/images/Stout89.jpg, all I get is a 404 "Not Found" error, which is your server saying it can't find that picture at that address. As I said before, the usual reason is a mistake in the file name, or not uploading the pictures to the correct folder. If you're sure you've checked both these things and the problem isn't there, then I'm not sure what to suggest.
I'm about to have dinner. I'll post again afterwards if inspiration strikes.
barnum — 2012-09-10T13:31:47-04:00 — #7
I have not uploaded the new photo...only double checking in My Doc, etc.... I will upload it now for your sake.
barnum — 2012-09-10T13:35:56-04:00 — #8
technobear — 2012-09-10T14:36:22-04:00 — #9
Sorry - I'd misunderstood.
I've tried again now that you've uploaded it and I'm still getting the 404 "Not Found" error. I'm really at a loss as to what to suggest.
You say you've tried replacing it with fifteen different jpgs and none of them works. Just out of interest, can you replace any other image, and can you replace Stoutstandards3.jpg with an image you're already using on your site, such as Coinhunting4.jpg?
barnum — 2012-09-10T14:42:07-04:00 — #10
finally got it to work but not sure why....had to take out the http://www.stoutstandards/com and just use the <img src="images/Stout95.jpg"
technobear — 2012-09-10T14:51:24-04:00 — #11
Ah - now I know why you had the problem. I was being very dim. By using
<img src="http://www.stoutstandards.com/images/Stoutstandards3.jpg" width="800" height="600">, you are telling the browser to look online for the image at that address. If you then substitute an image that you haven't yet uploaded, it will still look online for it, not in the local /images/ folder on your computer and of course, it won't find it. Using the relative filepath solves this problem.
barnum — 2012-09-10T14:59:39-04:00 — #12
Thanks for taking the time to help.....once again I learned something new. You folks here on Sitepoint are the best!
victorinox — 2012-09-10T15:03:44-04:00 — #13
The image you uploaded is actually named Stout98.jpg rather than Stout89.jpg as you previously stated.
Therefore it will work or without http://www.stoutstandards.com in the URL.
barnum — 2012-09-10T15:12:09-04:00 — #14
I am aware of that, and it was another photo I decided to try....really. I would admit my being stupid trust me. Again thanks for everything.
technobear — 2012-09-10T15:13:33-04:00 — #15
Well spotted. I tried every variation I could think of, but not that one.
It will now it's uploaded, but originally Barnum was testing locally and hadn't uploaded the new image.