{"id":15594,"date":"2008-10-28T22:27:32","date_gmt":"2008-10-28T22:27:32","guid":{"rendered":"http:\/\/blogs.adobe.com\/jnackdev\/2008\/10\/get-better-color-online-through-flash-player-10.html"},"modified":"2008-10-28T22:27:32","modified_gmt":"2008-10-28T22:27:32","slug":"get_better_color_online_through_flash_play","status":"publish","type":"post","link":"https:\/\/jnack.com\/blog\/2008\/10\/28\/get_better_color_online_through_flash_play\/","title":{"rendered":"Get better color online through Flash Player 10"},"content":{"rendered":"<p style=\"margin-top: 0;margin-bottom: 0\">Let&#8217;s not mince words: <strong>Presenting your images through Flash is now the best way to preserve the fidelity of  their color online<\/strong>.<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">Support for color management is in Web browsers is rare (only Safari supports it by default, and the IE team is apparently missing in action).&nbsp; Color management thus can\u2019t be counted on from browsers, and images <a href=\"http:\/\/blogs.adobe.com\/jnack\/files\/images\/safari_vs_ff.jpg\">display differently in different browsers<\/a>.  Flash Player, on the other hand, is ubiquitous, consistent, and reliable&#8211;and now in <a href=\"http:\/\/www.adobe.com\/products\/flashplayer\/features\/\">Flash Player 10<\/a> it offers basic color management support.&nbsp; It\u2019ll take a little while for the new FP10 to proliferate, but this is a huge step forward.&nbsp; <em>Color mgmt. in Flash will finally put an end to <a href=\"http:\/\/blogs.adobe.com\/jnack\/2006\/02\/ps_flash_color.html\">colors shifting when you move from PS to Flash<\/a>. <\/em><\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">I&#8217;ve asked Adobe color management expert Peter Constable to provide further details.&nbsp; For those, read on.&nbsp; For my take on why Web designers should give a damn about this stuff, see <a href=\"http:\/\/blogs.adobe.com\/jnack\/2007\/06\/safari_brings_c.html\">previous<\/a>. <\/p>\n<p><!--more--><br \/>\n<\/p>\n<hr \/>\n<p style=\"margin-top: 0;margin-bottom: 0\">Ever scratched your head when viewing your images on the web? They just don&#8217;t look the way you thought they would or the way they looked when you viewed them in Photoshop?  Well, there&#8217;s a reason for that.  The colors you view on screen in Photoshop (or most other apps in the Design Suite) take advantage of a Color Management System (CMS).  This CMS adjusts colors to take into account the unique characteristics of your imaging devices.  In the case of viewing colors on your monitor, Photoshop uses Adobe&#8217;s CMS to adjust colors that are sent to your monitor.  Most web browsers do not do this.<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">So what do you do if you want to use a CMS to provide accurate colors on a monitor display?  Luckily, we now have a solution with the latest version of the Adobe Flash Player.  Flash Player 10 can use Color Management to draw colors to screen.  The only hitch is that it needs to be enable when the SWF or FLV is created.  How do you do this?<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">You just need to put a small snippet of ActionScript 3 code in the Flash file.<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<ol style=\"margin-top: 0;margin-bottom: 0\">\n<li>Chose or create an ActionScript 3 Flash file.\n<\/li>\n<li> Open the Actions window (Window\/Actions).\n<\/li>\n<li>Type &quot;stage.colorCorrection = ColorCorrection.ON;&quot; in the Script window.<\/li>\n<li>Save the file.<\/li>\n<\/ol>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">You&#8217;re all set.<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">Note: Using this ActionScript enables an sRGB &#8211;&gt; monitor color transform in the Flash Player.  You should convert image files to the sRGB color space in Photoshop before publishing to Flash.<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">Now you are in a better position to ensure the images you post on the web will appear the way you want them to!<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">&nbsp;<\/p>\n<p style=\"margin-top: 0;margin-bottom: 0\">For more information on Color Management, see the sections on Color Management in the Adobe Help files.<\/p>\n<p>\n<i>[Update: Sorry if you&#8217;re hitting an error when trying to comment on this post.  A weird double-entry thing happened when I published it last night, and I&#8217;m presently trying to determine what&#8217;s up.  Update 2: Okay, seems to be working now.  &#8211;J.]<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s not mince words: Presenting your images through Flash is now the best way to preserve the fidelity of their color online. &nbsp; Support for color management is in Web browsers is rare (only Safari supports it by default, and the IE team is apparently missing in action).&nbsp; Color management thus can\u2019t be counted on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[26,32],"tags":[],"_links":{"self":[{"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/posts\/15594"}],"collection":[{"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/comments?post=15594"}],"version-history":[{"count":0,"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/posts\/15594\/revisions"}],"wp:attachment":[{"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/media?parent=15594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/categories?post=15594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/tags?post=15594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}