{"id":2040,"date":"2016-05-21T15:13:03","date_gmt":"2016-05-21T14:13:03","guid":{"rendered":"http:\/\/johnjohnston.info\/106\/?p=2040"},"modified":"2016-05-21T15:14:13","modified_gmt":"2016-05-21T14:14:13","slug":"accidental-allure","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/106\/accidental-allure\/","title":{"rendered":"Accidental Allure"},"content":{"rendered":"<p>In the past I&#8217;ve made a few experiments with randomly layering and combining images: <a href=\"https:\/\/www.flickr.com\/photos\/troutcolor\/albums\/72157652487384389\">Glen Finlas -evaluate-sequence subtract<\/a> and <a href=\"http:\/\/johnj.info\/prisoner106\/ep1\/ave\/index.html\">Averages<\/a> (The Prisoner) for example.<\/p>\n<p>A couple of weeks ago I started playing with combining images in the browser. There are several ways to go about this, I found a <a href=\"http:\/\/stackoverflow.com\/questions\/3648312\/blend-two-images-on-a-javascript-canvas\" title=\"graphics - blend two images on a javascript canvas - Stack Overflow\">nice script to blend two images on a canvas<\/a> and gave that a shot. It worked well and gave interesting results.<\/p>\n<p>I though that using the <a href=\"https:\/\/www.flickr.com\/services\/api\/\">Flickr API<\/a> I could gather a list of images and randomly blend them two at a time.<\/p>\n<p>Flickr&#8217;s API will return a json list. I started using the <a href=\"https:\/\/www.flickr.com\/services\/api\/explore\/flickr.interestingness.getList\">flickr.interestingness.getList<\/a> which produced some interesting (sic) combinations. However when I started to get the license of the photos most were not labled for reuse.<\/p>\n<p>I switched to using a standard search (flickr.photos.search ) which allowed me to search for license that allowed reuse.<\/p>\n<p>I also switched to using CSS and background-blend-mode, this allows you to have multiple images set on a background and blend them.<\/p>\n<p>For example using these images:<br \/>\n<img decoding=\"async\" style=\"width: 250px; float: left; margin: 10px;\" src=\"https:\/\/c2.staticflickr.com\/8\/7587\/26482589423_daa3bbdbd1.jpg\" \/><img decoding=\"async\" style=\"width: 250px; float: left; margin: 10px;\" src=\"https:\/\/c2.staticflickr.com\/8\/7012\/6677861899_ef6e012bc8.jpg\" \/><\/p>\n<p>And this code:<\/p>\n<p><code>&lt;div style=\"border:solid 1px;width:500px;height:400px;background-image:url('https:\/\/c2.staticflickr.com\/8\/7587\/26482589423_daa3bbdbd1.jpg'),url('https:\/\/c2.staticflickr.com\/8\/7012\/6677861899_ef6e012bc8.jpg');background-blend-mode:multiply;\"&gt;&lt;\/div&gt;<\/code><\/p>\n<p>give me this:<\/p>\n<div style=\"border: solid 1px; width: 500px; height: 400px; background-image: url('https:\/\/c2.staticflickr.com\/8\/7587\/26482589423_daa3bbdbd1.jpg'),url('https:\/\/c2.staticflickr.com\/8\/7012\/6677861899_ef6e012bc8.jpg'); background-blend-mode: multiply;\"><\/div>\n<p>With this in my toolbag I could pull in a flickr feed, extract image URLs and info about each photo and randomly combine them. They are displayed for 10 seconds each.<\/p>\n<p>This gave me this:<\/p>\n<p><a href=\"http:\/\/johnjohnston.info\/oddsandends\/flickrRandom\/\">Random Flickr Blendr<\/a><\/p>\n<p>Here are a few random blends, screen captured:<\/p>\n<div id='gallery-1' class='gallery galleryid-2040 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00001.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00001-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00002.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00002-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00003.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00003-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00004.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00004-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00005.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00005-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00006.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/blend-00006-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p>I&#8217;ve found the pictures quite compelling.<\/p>\n<p>On interesting this was the change I noticed when I swapped from the interestingness list to a search for creative commons images ordered by interestingness-desc. The images became more subtle and less HDRish, i think thy are more interesting and less glossy. An unusual win for Creative commons.<\/p>\n<p>Over in DS106 land the page was used for a daily create:<\/p>\n<p><a href=\"http:\/\/daily.ds106.us\/tdc1588\/\">#tdc1588 Turn @johnjohnston\u2019s Random Image Pairing into a Self-Help Book Title | The (new) Daily Create<\/a><\/p>\n<p>Which turned up some nice images and a fairly crazy bunch of titles.<\/p>\n<p>My Own:<\/p>\n<p><a href=\"http:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/tdc1588.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2051\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/tdc1588.jpg\" alt=\"tdc1588\" width=\"843\" height=\"625\" srcset=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/tdc1588.jpg 843w, https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/tdc1588-300x222.jpg 300w, https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/tdc1588-768x569.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>What was also interesting was some responses to the page:<\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p dir=\"ltr\" lang=\"en\">The results I get by <a href=\"https:\/\/twitter.com\/johnjohnston\">@johnjohnston<\/a> Random Image Pairing are mind blowing pieces of art. <a href=\"https:\/\/t.co\/rKsEKtxiSq\">https:\/\/t.co\/rKsEKtxiSq<\/a><\/p>\n<p>\u2014 Ronald_2008 (@ronald_2008) <a href=\"https:\/\/twitter.com\/ronald_2008\/status\/731531134585196544\">May 14, 2016<\/a><\/p><\/blockquote>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p dir=\"ltr\" lang=\"en\">WOW great pics to gander on <a href=\"https:\/\/twitter.com\/johnjohnston\">@johnjohnston<\/a> &#8216;s site. <a href=\"https:\/\/t.co\/rZMSleq6oU\">https:\/\/t.co\/rZMSleq6oU<\/a><\/p>\n<p>\u2014 Viv Rolfe (@VivienRolfe) <a href=\"https:\/\/twitter.com\/VivienRolfe\/status\/731530908008914945\">May 14, 2016<\/a><\/p><\/blockquote>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p dir=\"ltr\" lang=\"en\"><a href=\"https:\/\/twitter.com\/ronald_2008\">@ronald_2008<\/a> <a href=\"https:\/\/twitter.com\/dogtrax\">@dogtrax<\/a> <a href=\"https:\/\/twitter.com\/ds106dc\">@ds106dc<\/a> <a href=\"https:\/\/twitter.com\/johnjohnston\">@johnjohnston<\/a> I know. I just keep going back and watching it.<\/p>\n<p>\u2014 Viv Rolfe (@VivienRolfe) <a href=\"https:\/\/twitter.com\/VivienRolfe\/status\/731575248261353472\">May 14, 2016<\/a><\/p><\/blockquote>\n<p>So I an quite pleased with the result of this bit of experimenting. I&#8217;ve learnt a little more about CSS, images, JavaScript and even practised a bit of git. On the git front I&#8217;ve installed <a href=\"https:\/\/github.com\/ezyang\/git-ftp\">ezyang\/git-ftp <\/a> which is <em>a quick and efficient way of pushing changed files to a website via FTP<\/em> and works very well indeed. Saves working directly on line or opening an FTP application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the past I&#8217;ve made a few experiments with randomly layering and combining images: Glen Finlas -evaluate-sequence subtract and Averages (The Prisoner) for example. A couple of weeks ago I started playing with combining images in the browser. There are several ways to go about this, I found a nice script to blend two images &hellip; <a href=\"https:\/\/johnjohnston.info\/106\/accidental-allure\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Accidental Allure&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2052,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[81,91,154],"tags":[176,104,55,227,153,226,108],"class_list":["post-2040","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dailycreate","category-mashup","category-web","tag-api","tag-css","tag-flickr","tag-flickrapi","tag-fun","tag-git","tag-images"],"better_featured_image":{"id":2052,"alt_text":"","caption":"","description":"","media_type":"image","media_details":{"width":802,"height":600,"file":"2016\/05\/flickr-blendr-feature.jpg","sizes":{"thumbnail":{"file":"flickr-blendr-feature-150x150.jpg","width":150,"height":150,"mime-type":"image\/jpeg","source_url":"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/flickr-blendr-feature-150x150.jpg"},"medium":{"file":"flickr-blendr-feature-300x224.jpg","width":300,"height":224,"mime-type":"image\/jpeg","source_url":"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/flickr-blendr-feature-300x224.jpg"},"medium_large":{"file":"flickr-blendr-feature-768x575.jpg","width":768,"height":575,"mime-type":"image\/jpeg","source_url":"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/flickr-blendr-feature-768x575.jpg"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":2040,"source_url":"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/flickr-blendr-feature.jpg"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2016\/05\/flickr-blendr-feature.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3RLlC-wU","_links":{"self":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/2040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/comments?post=2040"}],"version-history":[{"count":6,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/2040\/revisions"}],"predecessor-version":[{"id":2054,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/2040\/revisions\/2054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/media\/2052"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/media?parent=2040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/categories?post=2040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/tags?post=2040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}