{"id":22,"date":"2008-09-13T13:48:04","date_gmt":"2008-09-13T18:48:04","guid":{"rendered":"http:\/\/www.mindworkshop.info\/?p=22"},"modified":"2009-06-23T13:08:45","modified_gmt":"2009-06-23T18:08:45","slug":"palette-options-in-animation-wizard-for-gif-construction-set","status":"publish","type":"post","link":"https:\/\/blog.mindworkshop.com\/?p=22","title":{"rendered":"Palette Options in Animation Wizard for GIF Construction Set"},"content":{"rendered":"<p>The appearance of the animations you create in <a href=\"http:\/\/www.mindworkshop.com\/alchemy\/gifcon.html\">GIF Construction Set Professional<\/a>&#8216;s Animation Wizard can be optimized by selecting the appropriate option in the Palette combo. Doing so may require some understanding of what the little man behind the curtain is <em>really<\/em> up to.<\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.mindworkshop.com\/image\/gcspro001.gif\" width=\"100\" height=\"100\" align=\"right\" border=\"0\" alt=\"\" \/><\/p>\n<p>The two most useful options &#8211; and, in fact, the only two you\u2019re ever likely to need &#8211; are Match to Superpalette and Dither to Superpalette. They both perform similar functions.<\/p>\n<p>A GIF file can only support a maximum of 256 unique colors. In building web page animations, the GIF files so created should use a &#8220;global palette,&#8221; which means that the aforementioned palette of 256 colors should apply to all the images in the animation. Doing it this way \u2013 rather than having a distinct palette for each image, called a &#8220;local palette&#8221; animation \u2013 allows for most of the optimization tricks GIF Construction Set can bring to bear on your animations that will ultimately make them smaller, and hence will make them download quickly.<\/p>\n<p>When Animation Wizard builds an animation using one of the Superpalette options, it surveys all the images in the animation under construction and derives the best possible 256-color palette to reflect their use of color. Except in pathological cases, this will result in the most attractive animations.<\/p>\n<p>We won\u2019t get into how it does this, as a fully a detailed explanation of the algorithm would unquestionably make your ears bleed.<\/p>\n<p>Having derived a suitable superpalette for all the source images in an animation under construction, Animation Wizard can do one of two things:<\/p>\n<ol>\n<li>It can match, or remap all the pixels of the pixels in the source images to the superpalette.<\/li>\n<li>It can dither all the pixels of the source images to superpalette.<\/li>\n<\/ol>\n<p>Check your ears for blood.<\/p>\n<p>In remapping an image, each pixel of the source image is replaced with the closest possible match in the superpalette. The catch in doing this is that 256 colors aren\u2019t really enough to create a convincing photorealistic image, and if you apply remapping to digital camera images or complex rendered art, you\u2019ll probably see bands of colors where there used to be smooth color gradients.<\/p>\n<p>Dithering cheats on the limitations of remapping by using alternating colored dots of the colors it has available in a superpalette to simulate the ones it doesn\u2019t. As an elementary example of dithering, imagine an area painted in alternating pixels of yellow and blue. Unless you looked at it very closely, you\u2019d see green, even though none of the pixels were green.<\/p>\n<p>Dithering trades resolution for better color fidelity. Dithered images typically have realistic color, at the expense of some sharpness.<\/p>\n<p>In building web page animation, there are several additional considerations to keep in mind when you\u2019re trying to decide which of the aforementioned palette options to select.<\/p>\n<p>While remapping shouldn\u2019t be applicable to anything other than line art, it often works surprisingly well on photorealistic source images having modest dimensions &#8211; these being the sorts of graphics that usually wind up forming web page animations. Small pictures have few pixels, and hence few distinct colors. You can often get away with remapping them.<\/p>\n<p>If you\u2019re building animations to which you intend to apply transparency, keep in mind that the alternating dot patterns created by dithering will typically make this impossible unless you retouch the backgrounds of your animations by hand after Animation Wizard gets through with them.<\/p>\n<p><!--wpads#blog--><\/p>\n<p>Animations which are to have transparent images pretty much always call for the Remap to Superpalette option.<\/p>\n<p>Finally, it\u2019s worth keeping in mind that the patterns created by dithering are precisely the sorts of image phenomena which put GIF\u2019s primitive image compression into a coma. Choosing the Remap to Superpalette option, rather than Dither to Superpalette, will typically result in smaller final animation files, and animations which can be reduced in size more effectively by GIF Construction Set\u2019s Supercompressor.<\/p>\n<p>Plan to experiment with these options a bit to get a feel for how they affect the kinds of animations you\u2019ll be building.<\/p>\n<p>You\u2019re probably wondering what all the other options in the Animation Wizard Palette combo do \u2013 you can safely ignore them. While they have some specialized applications &#8211; which are discussed in detail in the GIF Construction Set Manual, should you be curious or in need of sleep &#8211; you\u2019ll probably never have cause to apply them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The appearance of the animations you create in GIF Construction Set Professional&#8216;s Animation Wizard can be optimized by selecting the appropriate option in the Palette combo. Doing so may require some understanding of what the little man behind the curtain is really up to.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":0,"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mindworkshop.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}