The Future of Software Development - Devin AI Innovative Approach.pdf
Using Flickr API to add dates to photos
1. Using the flick r API to please my wife Background images downloaded from: http://profesorul09.webs.com/apps/photos/ My wife loves to take pictures, she also loves photo albums. Long time ago I wrote a little script for her that adds the original date to a photo using ImageMagick / This is the story of how to do the same in flick r Note: flick r automatically presents this info at the right side of any image – if it contains this EXIF info -, but I really want to try to do it by myself
21. Step 1: get the information for this photo: $photo_info = $f->photos_getInfo($_GET['id_photo']);
22.
23. Verify if everything works as expected if($f->getErrorCode()) echo $f->getErrorMsg(); else echo "<a href='".$photo_info['urls']['url'][0]['_content']."' target=_blank title='Click on the image to open it on flickr'><img src='".$f->buildPhotoURL($photo_info,"Small")."' border='0'></a><br/><em>Your image was sucessfully Commented/Tagged</em>";