Tuesday, March 01, 2005

Yahoo Image Search Collage Generator

Jeremy Zawodny announced the release of the Yahoo Search API a few days ago. I wanted to do something that uses the service. So, here is a quick Perl script that fires up a Yahoo! Image Search for the specified query text and displays the thumbnail images of the obtained search results in the form of a collage. The collage below was generated by saying:

yahoo_collage.pl --query flowers

You can specify the file which the collage should be written to by using the --file command-line option. For example: the following invocation of the script will query Yahoo for pictures of geeks and will write the collage to a file named geek.html.

yahoo_collage.pl --query geek --file geek.html

You can simply open geek.html in a Web Browser like Mozilla Firefox and view your collage later on.

You can download the source of the Perl script from here. I offer no guarantees, so if it breaks, you get to keep both pieces :-)

Update on March 03, 2005: I hacked the above script and generated a wallpaper after querying Yahoo Image Web Service on a set of keywords.

Check it out!


Abhimanyu said...

Hey...Nice One Sid!!

Francis Shanahan said...

Good job, this looks awesome.

You might enjoy this: http://www.FrancisShanahan.com/collage/bezos/bezos_b.aspx

It's the same idea but done with Amazon products. The extra twist is that each collage is interactive, you click a tile and it loads that product!

Anonymous said...

Great work Sid..Keep it up !!!

Anonymous said...

Great Job
But imagine the following scenario. Say one has a number of images of different shape (landscape, square etc.) and would like to keep the aspect ratio of the original images while setting up the collage. Any suggestion?

Sid Uppal said...

Well, I haven't tried it but the Image::Epeg module should do the trick.


Anonymous said...

While I surf blog , i found a all new trick in http://pic-memory.blogspot.com/
Vistor can comment and EMBED VIDEO , IMAGE . EX :
I wonder how they do it ? Anyone know about this , please tell me :D
(sr for my bad english ^_^)

email: ya76oo@ya76oo.com

craftmatic bed said...

black mold exposureblack mold symptoms of exposurewrought iron garden gatesiron garden gates find them herefine thin hair hairstylessearch hair styles for fine thin hairnight vision binocularsbuy night vision binocularslipitor reactionslipitor allergic reactionsluxury beach resort in the philippines

afordable beach resorts in the philippineshomeopathy for eczema.baby eczema.save big with great mineral makeup bargainsmineral makeup wholesalersprodam iphone Apple prodam iphone prahacect iphone manualmanual for P 168 iphonefero 52 binocularsnight vision Fero 52 binocularsThe best night vision binoculars here

night vision binoculars bargainsfree photo albums computer programsfree software to make photo albumsfree tax formsprintable tax forms for free craftmatic air bedcraftmatic air bed adjustable info hereboyd air bedboyd night air bed lowest pricefind air beds in wisconsinbest air beds in wisconsincloud air beds

best cloud inflatable air bedssealy air beds portableportables air bedsrv luggage racksaluminum made rv luggage racksair bed raisedbest form raised air bedsbed air informercialsbest informercials bed airmattress sized air beds

bestair bed mattress antique doorknobsantique doorknob identification tipsdvd player troubleshootingtroubleshooting with the dvd playerflat panel television lcd vs plasmaflat panel lcd television versus plasma pic the bestadjustable bed air foam The best bed air foam

hoof prints antique equestrian printsantique hoof prints equestrian printsBuy air bedadjustablebuy the best adjustable air bedsair beds canadian storesCanadian stores for air beds

migraine causemigraine treatments floridaflorida headache clinicdrying dessicantair drying dessicantdessicant air dryerpediatric asthmaasthma specialistasthma children specialistcarpet cleaning dallas txcarpet cleaners dallascarpet cleaning dallas

vero beach vacationvero beach vacationsbeach vacation homes veroms beach vacationsms beach vacationms beach condosmaui beach vacationmaui beach vacationsmaui beach clubbeach vacationsyour beach vacationscheap beach vacations

bob hairstylebob haircutsbob layeredpob hairstylebobbedclassic bobCare for Curly HairTips for Curly Haircurly hair12r 22.5 best pricetires truck bustires 12r 22.5

washington new housenew house houstonnew house san antonionew house venturanew houston house houston house txstains removal dyestains removal clothesstains removalteeth whiteningteeth whiteningbright teeth

jennifer grey nosejennifer nose jobscalebrities nose jobsWomen with Big NosesWomen hairstylesBig Nose Women, hairstyles