{"id":2371,"date":"2013-07-20T02:34:00","date_gmt":"2013-07-19T17:47:45","guid":{"rendered":"https:\/\/programresource.net\/?p=2371"},"modified":"2013-07-20T02:47:45","modified_gmt":"2013-07-19T17:47:45","slug":"animal-xing-designer-color-reduction-algorithm","status":"publish","type":"post","link":"https:\/\/programresource.net\/en\/2013\/07\/20\/2371.html","title":{"rendered":"Animal Xing Designer color reduction algorithm"},"content":{"rendered":"<p>Android tool, <a href=\"https:\/\/programresource.net\/en\/2013\/06\/11\/2311.html\" target=\"_blank\">Animal Xing Designer<\/a>\u00a0have been downloaded and used by quiet a number of people, with good feed-backs. However, recently there were some comments where color reduction is not working well. I was thinking of adding different type of color reduction algorithm, but found out there were problem in existing algorithm while reviewing source code.<\/p>\n<p>Light colored area had trouble reducing color, where original image as follows;<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-original-image.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2369 aligncenter\" alt=\"dmori-original-image\" src=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-original-image-187x300.png\" width=\"187\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-original-image-187x300.png 187w, https:\/\/programresource.net\/images\/2013\/07\/dmori-original-image-640x1024.png 640w, https:\/\/programresource.net\/images\/2013\/07\/dmori-original-image.png 800w\" sizes=\"(max-width: 187px) 100vw, 187px\" \/><\/a><\/p>\n<p>result as follows in v1.31, where image data is mostly gone.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-before-fix.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2368 aligncenter\" alt=\"dmori-before-fix\" src=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-before-fix-187x300.png\" width=\"187\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-before-fix-187x300.png 187w, https:\/\/programresource.net\/images\/2013\/07\/dmori-before-fix-640x1024.png 640w, https:\/\/programresource.net\/images\/2013\/07\/dmori-before-fix.png 800w\" sizes=\"(max-width: 187px) 100vw, 187px\" \/><\/a><\/p>\n<p>Dithering and color reduction is taking place, and color reduction algorithm were not working well in light colored area. I built new algorithm, and now color reduction is working better with v1.32.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-after-fix.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2367 aligncenter\" alt=\"dmori-after-fix\" src=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-after-fix-187x300.png\" width=\"187\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/07\/dmori-after-fix-187x300.png 187w, https:\/\/programresource.net\/images\/2013\/07\/dmori-after-fix-640x1024.png 640w, https:\/\/programresource.net\/images\/2013\/07\/dmori-after-fix.png 800w\" sizes=\"(max-width: 187px) 100vw, 187px\" \/><\/a><\/p>\n<p>I first thought problem is in dithering algorithm, so I&#8217;ve added Sierra2, Burkes, and Stucki method (originally using Floyd-Steinberg). I&#8217;ve left added methods so users can have more options, but hard to see the differences between different dithering methods&#8230;<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/07\/dithering-method.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2366 aligncenter\" alt=\"dithering-method\" src=\"https:\/\/programresource.net\/images\/2013\/07\/dithering-method-300x300.png\" width=\"300\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/07\/dithering-method-300x300.png 300w, https:\/\/programresource.net\/images\/2013\/07\/dithering-method-150x150.png 150w, https:\/\/programresource.net\/images\/2013\/07\/dithering-method-90x90.png 90w, https:\/\/programresource.net\/images\/2013\/07\/dithering-method-61x61.png 61w, https:\/\/programresource.net\/images\/2013\/07\/dithering-method-120x120.png 120w, https:\/\/programresource.net\/images\/2013\/07\/dithering-method.png 583w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android tool, Animal Xing Designer\u00a0have been downloaded and used by quiet a number of people, with good feed-backs. However, recently there were some comments where color reduction is not working well. I was thinking of adding different type of color reduction algorithm, but found out there were problem in existing algorithm while reviewing source code. Light colored area had trouble reducing color, where original image as follows; result as follows in v1.31, where image data is mostly gone. Dithering and color reduction is taking place, and color reduction algorithm were not working well in light colored area. I built new algorithm, and now color reduction is working better with v1.32. &#8230;<\/p>\n","protected":false},"author":2,"featured_media":2366,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[194,195],"tags":[390,534,569,391,567,568,535,570,571],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/programresource.net\/images\/2013\/07\/dithering-method.png","jetpack_shortlink":"https:\/\/wp.me\/p3pJyQ-Cf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2371"}],"collection":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/comments?post=2371"}],"version-history":[{"count":1,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2371\/revisions"}],"predecessor-version":[{"id":2372,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2371\/revisions\/2372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media\/2366"}],"wp:attachment":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media?parent=2371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/categories?post=2371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/tags?post=2371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}