Forums

This topic is locked

How do I use images from an external site?

Posted 15 Nov 2007 04:26:45
1
has voted
15 Nov 2007 04:26:45 Taylor Huck posted:
Noob question here:

I have a cafepress site that sells bumperstickers, and I have a website (in addition to the cafepress site) that displays the bumperstickers and links to the cafepress site.

I'm in the process of revamping the old, crappy-looking site and I don't want to have to resize and re-optimize all the images (there are well over a hundred of them) again.

This time, I'd like to just have the images from the cafepress site display in my Dreamweaver site. Is there a way to do this without copying and saving all the images?

I'm using DW8, but also have MX2004...it doesn't matter to me which one I use.

Thanks!

Not all who wander are lost.....but yeah, some of them are totally, completely and hopelessly lost.

Replies

Replied 16 Nov 2007 16:15:03
16 Nov 2007 16:15:03 Alan C replied:
hi,
instead of calling the image from your local site like. . .

<pre id=code><font face=courier size=2 id=code> &lt;img src="/images/my_image.jpg" alt ="my image" etc &gt;</font id=code></pre id=code>

you can use the full path to the image on the other domain, so it would look something like . . .

<pre id=code><font face=courier size=2 id=code> &lt;img src="cafepress.co.uk/images/my_image.jpg" alt="whatever" etc &gt;</font id=code></pre id=code>

that will send the browser to the other site to pick it up, BUT, it will take a little longer, and as far as your old server is concerned it will look like someone is 'stealing' your images by using them directly off your server.
Replied 16 Nov 2007 23:01:53
16 Nov 2007 23:01:53 billy imam replied:
just as an added note, if you did any image alterations in the html (like width and height) you'll have to do the changes again.
Replied 17 Nov 2007 04:48:20
17 Nov 2007 04:48:20 Taylor Huck replied:
Thanks, guys.

Alan, a followup if I may.

By 'my old server' do you mean it will look like my website is 'stealing' images off the cafepress site, to whoever monitors such things at cafepress (it likely wouldn't matter, since they are my images...just curious if that's what you mean.)

Also, I can go into the code and put in the img src tag in the html, but is there a way to do this from design view in DM as I build my site? When I try to 'insert image' into a cell of a table, there seems to be no option for inserting an image from an external site...short of doing it in the html in code view.

Is there some option or menu or dropdown that I'm missing in design view that would let me do this without searching around in the code for each image tag?

Thanks again...

Tayyylor


Not all who wander are lost.....but yeah, some of them are totally, completely and hopelessly lost.
Replied 18 Nov 2007 19:50:41
18 Nov 2007 19:50:41 Alan C replied:
Hi again,
on the image stealing thing first - you're right, they are your images so it doesn't matter that you're serving them from your 'old' server, most hosting providers will not bother anyway. In my control panels I have something that alerts me and I look down the stats to see if anyone is taking my images, only because I don't want them using my bandwidth. As far as actually taking my images I'm nasty, I go and look at their pages, then I produce a custom image that says something like 'this image is stolen from . . . .' then put that in place of the old image, then re-name the old image on my site, so the leechers get a nasty surprise but my site looks the same. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

I also found a nice little script that looks at the referer and if it's not a page on my domain it doesn't send the image

Your second point, I think you are stuck with just having the reference, that's because dw will not be able to 'see' the image - it's not something I've done a lot of so there may be a better way to do it, someone else may have a better answer.

Another thing - which is totally an aside is relative and absolute addressing within your site - if you have relative addresses dw can show the images more easily when you preview, well that's how it seems to me.

Hope that helps
Replied 30 Nov 2007 02:48:54
30 Nov 2007 02:48:54 Taylor Huck replied:
Cool,

Thanks for the help, Alan...

Not all who wander are lost.....but yeah, some of them are totally, completely and hopelessly lost.

Reply to this topic