Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an FTP? 1

Status
Not open for further replies.

juandiegomc

Programmer
Apr 25, 2003
60
US
I am using LeapFTP to up load pictures on my web server and it works fine.

Now where should I put the picture in the "image" directory or below the main directory called "html". Or should I put the picture just below the directory where the where the folders which are connected to the pictures. My question is this? How do I link this pictures in the same directory to the folder from which they would appear on the web site? I have a feeling I am miss wording this question.

juandiegomcc@afirmacion.com
 
juandiegomc,

you can put the pictures wherever you want as long as you place them somewhere in the 'html' folder or a subfolder of it.

To have a better control/overview over your pics I would recommend to put in a folder 'images' right below the 'html' (in that folder).

I will give you some examples hwo to reference the pics:

for a file in the html-folder:
Code:
<img src=&quot;images/myPic.gif&quot;>

for a file in a subfolder of the html-folder:
Code:
<img src=&quot;../images/myPic.gif&quot;>

If you want to go deeper in the folder-hierarchy will have to add '../' for every level you go further:

for /html/nav/example/ it would be:
Code:
<img src=&quot;../../images/myPic.gif&quot;>

for /html/nav/example/test/ it would be:
Code:
<img src=&quot;../../../images/myPic.gif&quot;>

Got it? ;-)

I hope this answered you question...

Cheers

frag

patrick.metz@epost.de
 
Fraq,

I owe you many stars. I invite you to

see my website. It works beautiful. It sure

takes a lot of time to download the pictures,

but it works. Stars to you and many thanks.

visit
John James Mcc

juandiegomcc@afirmacion.com
 
Fraq,

The pictures work super now. But a quick question?

Is there a way to speed up the download of the pictures

on the website?

juandiegomcc@afirmacion.com
 
juandiegomc,

actually I can't see that much pics on the page. There
are a lot of links and I did only follow a few of them.

I just can give you some general tips:

1. Use a compressed file format (e.g. JPG) and find a compromise between quality and size!

2. If possible resize the pics to the resolution they should have on your page + use hight and width in the '<image>' tag and set it to the size required.

3. Don't use the fullsize pics to make previews for a gallery. Use 'thumbs' (smaller picture of the original one).

That's all that comes to my mind for the moment...

Cheers

frag



patrick.metz@epost.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top