Results 1 to 6 of 6

Thread: Grab image from other site

  1. #1
    Join Date
    Dec 2010
    Posts
    18
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Grab image from other site

    Hello,

    <link rel="image_src" href="image.jpg" />
    To show a thumb of your site to facebook, you need to have the above code between the head of your website.

    How can I have that facebook feature--to show any image from other site to my site?

    And if I type a url like below, it will show an image?

    It work if I want to grab the favicon:
    But I want to grab any image from their site instead like facebook...

    Thanks! hope you get what I mean and help me...

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, just copy the full (it's called absolute) address of the image you want and use that. It's called hotlinking.

    However, many servers have policies against hotlinking and can block the request if it doesn't come from a page on the domain where the image is hosted. So this will not always work. In fact, if you already have the image cached on your computer, it may appear to work when it doesn't.

    To test that, after you have it setup clear the browser's cache and see if you can still access the image from the hotlink.

    Even if they're not blocking you, it might be illegal to hotlink - a form of copyright infringement. So do this sort of thing with respect for the other person's material.

    As long as these are all your own images, you don't have to worry about the legal part, just whether or not hotlinking is allowed by the host.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2010
    Posts
    18
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks for ur reply sir

    My site is a text link dump. Users can promote their website content url.

    I am thinking if instead of adding an image thumb each time a user will submit a link, maybe there's an automated way like facebook.

    But anyway I found a solution by grabbing their favicon instead

    http://getfavicon.appspot.com/

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It all depends upon how the favicon is grabbed. What I mentioned about hotlinking may still apply.

    But if that (the possibility that some of the favicon images might not show up) doesn't concern you, it seems like a nice touch.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    if users are submitting their own links, then you could simply add the favicon-grabbing to your terms of service. you might also give users a way to manually submit their favicon if your grab attempt fails.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Many sites don't have favicons. That might be a bigger problem for this. In that case, allowing users to submit a favicon or having a default (perhaps the first letter of the name of the site?) would be useful.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •