get_tags(); $link_url = $model->get_photo(); $photo_url = $model->photo_url; $md5 = md5($photo_url); /* $tags = ISSET($_GET['tags']) ? $_GET['tags'] : 'thing'; include('random_tags.php'); $rand_indexs = array_rand($random_tags,2); $backup_tags = $random_tags[$rand_indexs[0]] .','.$random_tags[$rand_indexs[1]]; if($tags == ""){ $tags = $backup_tags; } $num_tags = count(explode(',',$tags)); $page = ceil(rand(1,100/pow($num_tags,2))); */ /* function get_photo_array($tags,$page = 0){ if($page == 0){ $num_tags = count(explode(',',$tags)); $page = ceil(rand(1,100/pow($num_tags,2))); } $params = array( 'api_key' => '87b2caecfcfe94d07e4fe96ff0934bb6', 'method' => 'flickr.photos.search', 'format' => 'php_serial', 'page' => $page, 'per_page' => 10, 'tags' => $tags, 'tag_mode' => 'all', 'sort' => 'interestingness-desc' ); $encoded_params = array(); foreach ($params as $k => $v){ $encoded_params[] = urlencode($k).'='.urlencode($v); } $url = "https://api.flickr.com/services/rest/?".implode('&', $encoded_params); $rsp = file_get_contents($url); $rsp_obj = unserialize($rsp); return $rsp_obj; } $rsp_obj = get_photo_array($tags,$page); if($page > $rsp_obj['photos']['pages']){ $new_page = rand(1,$rsp_obj['photos']['pages']); $rsp_obj = get_photo_array($tags,$new_page); } if(!count($rsp_obj['photos']['photo'])){ $rsp_obj = get_photo_array($backup_tags,1); $tags = $backup_tags; } $photos = $rsp_obj['photos']['photo']; $photo_index = array_rand($photos); $photo = $photos[$photo_index]; $photo_url = "http://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['secret'] . ".jpg"; $link_url = "http://www.flickr.com/photos/" . $photo['owner'] . "/" . $photo['id']; echo ""; $filename= 'photo_backup.json'; $file = fopen($filename, 'r'); $contents = fread($file,filesize($filename)); echo ""; */ ?>
Something-to-draw.com is a wonderful site to give you something to draw or sketch for practicing art. Visitors that use this site might be interested in having access to art supplies, art materials and other art related merchandise. They might also like some art lessons such as painting lessons or drawing lessons. I have put together this wonderful and simple site as a fun project to pull high quality images from Flickr.com which might be fun to sketch.

So sit back, relax and grab your graphite, charcoal, some prismacolor pensils, or maybe some acrylic paint or watercolors. Refresh the page to get a new picture to paint. If you're a crawler, please chill the heck out and recognize that this page is about making and practicing art!
*/?>
*/ ?>
Tags:

?

Welcome to something-to-draw.com.

Each picture is chosen randomly from Flickr.com with the given tags or random tags (if none are provided).

Separate tags with commas.

Each photograph is the property of it's respective owner.

Enjoy.

© 2014 nick woodward
SOME
THING
TO
DRAW