We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › flickr in processing
Page Index Toggle Pages: 1
flickr in processing (Read 1986 times)
flickr in processing
Mar 22nd, 2007, 5:04pm
 
I am working on a data visualization using processing & would like to get the image from flicr. anyone can help?
I found that in flickr api page, there is java & php / xml support, but not in processing, anyone can give more information on that?

the switchboard libaray just support yahoo/you tube/google..but not flickr. Please help...thx thx
Re: flickr in processing
Reply #1 - Mar 22nd, 2007, 8:57pm
 
First of all you can send request to flickr and get the result xml with processing without any libraries. To process the result xml you will need the proXML library. Thereafter you can load the images simply calling loadImage(). Note that this will only works in processing and not in an applet, in cause of the secure things in applets. To get loadImage work in an applet you need to write an php script located on the same server as the applet, which loads the image.
I've made an applet this way:
http://www.eskimoblood.de/code.php?i=25
Re: flickr in processing
Reply #2 - Mar 23rd, 2007, 3:04am
 
thx information is very useful. I can able to get the flickr image now. however i found that the speed of display the image is very slow, do you know how to write a slide show for such display?
Re: flickr in processing
Reply #3 - Mar 23rd, 2007, 7:49am
 
I think your problem is that you try to load all pics at ones. Take a look at my example. There the pics are loaded in a separate thread. That means you can load and start your sketch and the pics will loaded in the background.

Re: flickr in processing
Reply #4 - Apr 22nd, 2007, 1:01pm
 
Here is a php snippet to load an image via php-file in an applet:
Code:

<?php
$id = $_GET['id'];
$secret = $_GET['secret'];
$server = $_GET['server'];


$PHOTO_URL = "http://photos".$server.".flickr.com/".$id."_".$secret."_s.jpg";
$fp = fopen($PHOTO_URL, "rb");
fpassthru($fp);
?>

Its from an old project, so maybe the flickr photo url has changed.
Page Index Toggle Pages: 1