{"id":93,"date":"2019-07-30T02:10:55","date_gmt":"2019-07-30T02:10:55","guid":{"rendered":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/?p=93"},"modified":"2019-07-31T20:32:16","modified_gmt":"2019-07-31T20:32:16","slug":"duotone","status":"publish","type":"post","link":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/2019\/duotone\/","title":{"rendered":"Duotone"},"content":{"rendered":"<p>I wanted a duotone effect on the photos on this site and at first I thought I would like to create it through CSS but what I found seemed to require adding extra HTML, which isn&#8217;t something I want to spend my time on for this site (I&#8217;m using <a href=\"https:\/\/generatepress.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">GeneratePress<\/a> and I&#8217;m not in the mood for a child theme at the moment), and as I was searching for different ways to create the effect, I came upon this little tutorial for Photoshop.<\/p>\n<p><strong>Title:<\/strong> Digging into Duotone: How to Create &amp; Use Colorized Images in Web Design<br \/>\n<!--more--><br \/>\n<strong>Where:<\/strong> <a href=\"https:\/\/www.templatemonster.com\/blog\/duotone-effect-web-design\/\" target=\"_blank\" rel=\"noopener noreferrer\">@ Template Monster by Matthew Cain<\/a><\/p>\n<p><strong>Of note:<\/strong> The layout of the article is a bit odd in places. You can also use three colors or just one.<\/p>\n<p>The article starts with a bit of history, more current examples, a bit more technical explanation of what it is and then three methods for how to achieve it in Photoshop:<\/p>\n<ol>\n<li><strong>Gradient Map Tool<\/strong> &#8211; Add an adjustment layer &gt; gradient map. Pick a dark color for a dark color and a light one for your second color. As with any gradient, you can add a third color by adding a point between these two and choosing a new color for it. Since this is, obviously in between the dark and the light color, this will map to the midtones.<\/li>\n<li><strong>Color Fill Layers<\/strong> &#8211; Start with a black &amp; white adjustment layer. Add a color fill layer for each color. Set the blend mode for the light color to multiply and for the dark one to screen. This creates a very different effect from method 1, because the colors aren&#8217;t actually mapped to the dark and the light areas of the photo, the way they are with the gradient map, they&#8217;re applied equally all over. This is also the basic method when doing it directly on your site with CSS, see the Codepen below.<\/li>\n<li><strong>Duotone Mode<\/strong> &#8211; Change the mode of the image to grayscale, then convert the image to duotone mode. The results of this method are more similar to the first method but slightly gentler.<\/li>\n<\/ol>\n<p><strong>Thoughts:<\/strong> I did not use Photoshop, I used Affinity Photo, but it works similar enough for methods 1 and 2. I&#8217;m not sure if method 3 is possible in Affinity as well.<\/p>\n<h3>Codepen: duotone with CSS<\/h3>\n<p>You won&#8217;t be able to see the effect of the CSS duotone photo if you&#8217;re using Edge or Internet Explorer to view this site. You&#8217;ll only be able to see the one created with an image editor.<\/p>\n<p>[codepen_embed height=&#8221;555&#8243; theme_id=&#8221;0&#8243; slug_hash=&#8221;wVJVJw&#8221; default_tab=&#8221;result&#8221; user=&#8221;blindeman&#8221;]See the Pen &lt;a href=&#8217;https:\/\/codepen.io\/blindeman\/pen\/wVJVJw\/&#8217;&gt;css duotone&lt;\/a&gt; by Naomi Blindeman (&lt;a href=&#8217;https:\/\/codepen.io\/blindeman&#8217;&gt;@blindeman&lt;\/a&gt;) on &lt;a href=&#8217;https:\/\/codepen.io&#8217;&gt;CodePen&lt;\/a&gt;.[\/codepen_embed]<\/p>\n<p>&nbsp;<\/p>\n<h3>Also, &#8230;<\/h3>\n<p>There is sort of a follow up to this post <a href=\"https:\/\/www.blindemanwebsites.com\/today-i-learned\/2019\/supports-makes-me-happy\/\">@supports makes me happy<\/a> that addresses the lack of support in some browsers for the technique used in the Codepen.<\/p>\n<hr \/>\n<div class=\"_3bJ2H CHExY\">\n<div class=\"_1l8RX _1ByhS\">Photo by <a href=\"https:\/\/unsplash.com\/@cameronfillery?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noopener noreferrer\">Cameron Fillery<\/a> on <a href=\"https:\/\/unsplash.com\/search\/photos\/gradient-colours?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noopener noreferrer\">Unsplash<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I wanted a duotone effect on the photos on this site and at first I thought I would like to create it through CSS but what I found seemed to require adding extra HTML, which isn&#8217;t something I want to spend my time on for this site (I&#8217;m using GeneratePress and I&#8217;m not in the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Duotone\" class=\"read-more button\" href=\"https:\/\/www.blindemanwebsites.com\/today-i-learned\/2019\/duotone\/#more-93\" aria-label=\"Read more about Duotone\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":94,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[16,25,17,14,15],"class_list":["post-93","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-new-things","tag-affinity","tag-codepen","tag-css","tag-images","tag-photoshop","infinite-scroll-item","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":0,"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/media\/94"}],"wp:attachment":[{"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blindemanwebsites.com\/today-i-learned\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}