topical media & game development
mashup-flickr-10-10-1.pl / pl
#!/usr/bin/perl
use Image::Magick;
use Flickr::API;
use XML::Parser::Lite::Tree::XPath;
apisecret = 'YOUR-API-SECRET';
# Replace this with your NSID
flickr = new Flickr::API(
{
'key' => apisecret,
});
flickr->execute_method('flickr.photos.search',
{
'user_id' => xpath = new XML::Parser::Lite::Tree::XPath(xpath->select_nodes('/photos/photo');
#photos >= 0)
{
photos[0];
photo->{'attributes'}->{'server'} . '/'
. photo->{'attributes'}->{'secret'}
. '_s.jpg';
url);
}
compositeImage->Set(size=>'85x85');
compositeImage->Composite(image => compositeImage->Write(filename => 'image.jpg', quality => 85);
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.