homepage Welcome to WebmasterWorld Guest from 23.23.22.200
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Script to Determine The Significant Web Page Image
itledi




msg:3589583
 1:53 am on Mar 3, 2008 (gmt 0)

I generate a list of web pages using a script I wrote.

What I need to do now is to grab the content of these pages, and to somehow determine the most significant image is on the page.

This will allow me to grab and resize the image for a thumbnail for a link to the site.

For example, if they were news articles, it would be the story's picture, not the newspaper's logo, or advertisments, or other images.

I'm dealing with a list of different, and changing websites.

Are there any scripts out there that does this? Does anybody have any recommendations?

 

jatar_k




msg:3589895
 2:40 pm on Mar 3, 2008 (gmt 0)

I don't know of any but you could try the usual suspects, hotscripts, sourceforge, freshmeat

it does sound fairly specific though and the decision of which image is mildly complex

coopster




msg:3589901
 2:45 pm on Mar 3, 2008 (gmt 0)

Exactly.

and to somehow determine the most significant image is on the page.

You will need to define more specifically exactly what makes any image on any given page most significant.

I believe you are going to end up writing some custom code for this particular project.

Vis3R




msg:3590207
 7:43 pm on Mar 3, 2008 (gmt 0)

I think this is going to be a really complex thing to code, since it won't always work however good you can code it. The only guys who are coding stuff like that are programmers at google/yahoo/msn and other search engine companies, and even their code is not perfect, far from that...

If you need that just for taking out the picture which would tell you what the website is about, i'd suggest you take thumbnails of whole websites, which is easy to code.

itledi




msg:3591519
 2:08 am on Mar 5, 2008 (gmt 0)

It would be really complex, something way beyond me. That's why I was hoping for a script somebody might have already developed.

I decided to go a different approach, and make my own script that will just work for the ten most frequent sites on my list. They provide most of the results anyways.

Thanks.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved