How to gather external images for a website

Tags:
Web development
I created a website, but some images are not copied to the correct "images" folder so when I upload to the web those images are missing. Is there a quick way to copy all external images to the site's proper folder instead of editing each individual image location?
ASKED: March 3, 2008  3:08 PM
UPDATED: March 4, 2008  6:31 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

When creating a site I like to keep all images in a single folder such as IMAGES for purposes such as these. If an image becomes corrupt you can push it back out to the web easier from a single location or replicate the entire folder if needed. Just make sure that you keep this folder cleaned up. Delete the images that are not used anymore, etc., so that you are not wasting space on your host server. You can then use programs such as WSFTP to push the entire folder to the server when needed.

Another thing you might do in addition to this is to reference the images in the HTML from the root of the site, for example, instead of <a href=”http://www.websystemsadministration.com/KB/Portals/0/logo.JPG”>http://www.websystemsadministration.com/KB/Portals/0/logo.JPG</a> reference it as <a href=”http://www.websystemsadministration.com/KB/Portals/0/logo.JPG”><i>/KB/Portals/0/logo.JPG</i></a> so that if you add or change the domain name it doesn’t effect the images in the code.

Also, be on the watch out for literal links from your development of the site in your code like <i>C:\my pictures\webimages/logo.gif</i>

If you have any images you need to replace the pathes with quickly you could do a search and replace (CTRL-H in most applications) and change them at once.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following