{"id":481,"date":"2019-08-05T10:10:47","date_gmt":"2019-08-05T08:10:47","guid":{"rendered":"https:\/\/hpjansson.org\/blag\/?p=481"},"modified":"2022-06-19T00:31:48","modified_gmt":"2022-06-18T22:31:48","slug":"chafa-1-2-0","status":"publish","type":"post","link":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/","title":{"rendered":"Chafa 1.2.0: Faster than ever, now with 75% more grit"},"content":{"rendered":"\n<p>For all you <a href=\"https:\/\/hpjansson.org\/chafa\/\">terminal graphics<\/a> connoisseurs out there (there must be <em>dozens<\/em> of us!), I released <a href=\"https:\/\/hpjansson.org\/chafa\/download\/\">Chafa 1.2.0<\/a> this weekend. Thanks to embedded copies of some parallel <a href=\"https:\/\/github.com\/hpjansson\/smolscale\">image scaling code<\/a> and the quite excellent <a href=\"https:\/\/www.netsurf-browser.org\/projects\/libnsgif\/\">libnsgif<\/a>, it's faster and better in every way. What's more, there are exciting new dithering knobs to further <s>mangle<\/s> refine your beautiful pictures. You can see what this stuff looks like in the <a href=\"https:\/\/hpjansson.org\/chafa\/gallery\/\">gallery<\/a>.<\/p>\n\n\n\n<p>Included is also a <a href=\"https:\/\/github.com\/hpjansson\/chafa\/tree\/master\/tools\/fontgen\">Python program<\/a> by <a href=\"https:\/\/github.com\/cdluminate\">Mo Zhou<\/a> that uses <a href=\"https:\/\/en.wikipedia.org\/wiki\/K-means_clustering\">k-means clustering<\/a> to produce optimal glyph sets from training data. Neat!<\/p>\n\n\n\n<p>Thanks to all the packagers, unsung heroes of the F\/OSS world. Shoutouts go to <a href=\"https:\/\/iodoru.org\/\">Michael Vetter<\/a> (<a href=\"https:\/\/www.opensuse.org\/\">openSUSE<\/a>) and Guy Fleury Iteriteka (<a href=\"https:\/\/guix.gnu.org\/\">Guix<\/a>) who got in touch with package info and installation instructions.<\/p>\n\n\n\n<p>The full <a href=\"https:\/\/github.com\/hpjansson\/chafa\/releases\/tag\/1.2.0\">release notes<\/a> are on GitHub.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What's next<\/h2>\n\n\n\n<p>I've been asked about <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sixel\">sixel<\/a> support and some kind of interactive mode. I think both are in the cards&#8230; In the meantime, here's a butterfly\u00b9.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/hpjansson.org\/chafa\/img\/example-1.gif\" alt=\"A very chafa butterfly\"\/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u00b9 Original via&#8230; Twitter? Tumblr? Imgur? Gfycat? I honestly can't remember.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For all you terminal graphics connoisseurs out there (there must be dozens of us!), I released Chafa 1.2.0 this weekend. Thanks to embedded copies of some parallel image scaling code and the quite excellent libnsgif, it's faster and better in &hellip;<\/p>\n","protected":false},"author":1,"featured_media":491,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,6],"tags":[20,19,22,21,39],"class_list":["post-481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computing","category-technical","tag-ansi-art","tag-chafa","tag-release","tag-terminal-graphics","tag-textmode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Chafa 1.2.0: Faster than ever, now with 75% more grit - Et tu, Cthulhu<\/title>\n<meta name=\"description\" content=\"For all you terminal graphics connoisseurs out there, I released Chafa 1.2.0 this weekend. It&#039;s faster and better in every way.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Chafa 1.2.0: Faster than ever, now with 75% more grit - Et tu, Cthulhu\" \/>\n<meta property=\"og:description\" content=\"For all you terminal graphics connoisseurs out there, I released Chafa 1.2.0 this weekend. It&#039;s faster and better in every way.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/\" \/>\n<meta property=\"og:site_name\" content=\"Et tu, Cthulhu\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-05T08:10:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-18T22:31:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/08\/chafa-logo-still.png\" \/>\n\t<meta property=\"og:image:width\" content=\"488\" \/>\n\t<meta property=\"og:image:height\" content=\"310\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hans Petter Jansson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hpj\" \/>\n<meta name=\"twitter:site\" content=\"@hpj\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hans Petter Jansson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/\"},\"author\":{\"name\":\"Hans Petter Jansson\",\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/#\\\/schema\\\/person\\\/a86f9dc39a36a8184d6e6f9a759f235c\"},\"headline\":\"Chafa 1.2.0: Faster than ever, now with 75% more grit\",\"datePublished\":\"2019-08-05T08:10:47+00:00\",\"dateModified\":\"2022-06-18T22:31:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/\"},\"wordCount\":174,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/#\\\/schema\\\/person\\\/a86f9dc39a36a8184d6e6f9a759f235c\"},\"image\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/chafa-logo-still.png\",\"keywords\":[\"ansi art\",\"chafa\",\"release\",\"terminal graphics\",\"textmode\"],\"articleSection\":[\"Computing\",\"Technical\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/\",\"url\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/\",\"name\":\"Chafa 1.2.0: Faster than ever, now with 75% more grit - Et tu, Cthulhu\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/chafa-logo-still.png\",\"datePublished\":\"2019-08-05T08:10:47+00:00\",\"dateModified\":\"2022-06-18T22:31:48+00:00\",\"description\":\"For all you terminal graphics connoisseurs out there, I released Chafa 1.2.0 this weekend. It's faster and better in every way.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/chafa-logo-still.png\",\"contentUrl\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/chafa-logo-still.png\",\"width\":488,\"height\":310},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/2019\\\/08\\\/05\\\/chafa-1-2-0\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chafa 1.2.0: Faster than ever, now with 75% more grit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/#website\",\"url\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/\",\"name\":\"Et tu, Cthulhu\",\"description\":\"Personal blag of Hans Petter Jansson: Fun with computers edition\",\"publisher\":{\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/#\\\/schema\\\/person\\\/a86f9dc39a36a8184d6e6f9a759f235c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/hpjansson.org\\\/blag\\\/#\\\/schema\\\/person\\\/a86f9dc39a36a8184d6e6f9a759f235c\",\"name\":\"Hans Petter Jansson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g\",\"caption\":\"Hans Petter Jansson\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g\"},\"sameAs\":[\"https:\\\/\\\/hpjansson.org\\\/\",\"https:\\\/\\\/x.com\\\/hpj\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Chafa 1.2.0: Faster than ever, now with 75% more grit - Et tu, Cthulhu","description":"For all you terminal graphics connoisseurs out there, I released Chafa 1.2.0 this weekend. It's faster and better in every way.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/","og_locale":"en_US","og_type":"article","og_title":"Chafa 1.2.0: Faster than ever, now with 75% more grit - Et tu, Cthulhu","og_description":"For all you terminal graphics connoisseurs out there, I released Chafa 1.2.0 this weekend. It's faster and better in every way.","og_url":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/","og_site_name":"Et tu, Cthulhu","article_published_time":"2019-08-05T08:10:47+00:00","article_modified_time":"2022-06-18T22:31:48+00:00","og_image":[{"width":488,"height":310,"url":"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/08\/chafa-logo-still.png","type":"image\/png"}],"author":"Hans Petter Jansson","twitter_card":"summary_large_image","twitter_creator":"@hpj","twitter_site":"@hpj","twitter_misc":{"Written by":"Hans Petter Jansson","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#article","isPartOf":{"@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/"},"author":{"name":"Hans Petter Jansson","@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c"},"headline":"Chafa 1.2.0: Faster than ever, now with 75% more grit","datePublished":"2019-08-05T08:10:47+00:00","dateModified":"2022-06-18T22:31:48+00:00","mainEntityOfPage":{"@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/"},"wordCount":174,"commentCount":2,"publisher":{"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c"},"image":{"@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#primaryimage"},"thumbnailUrl":"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/08\/chafa-logo-still.png","keywords":["ansi art","chafa","release","terminal graphics","textmode"],"articleSection":["Computing","Technical"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/","url":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/","name":"Chafa 1.2.0: Faster than ever, now with 75% more grit - Et tu, Cthulhu","isPartOf":{"@id":"https:\/\/hpjansson.org\/blag\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#primaryimage"},"image":{"@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#primaryimage"},"thumbnailUrl":"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/08\/chafa-logo-still.png","datePublished":"2019-08-05T08:10:47+00:00","dateModified":"2022-06-18T22:31:48+00:00","description":"For all you terminal graphics connoisseurs out there, I released Chafa 1.2.0 this weekend. It's faster and better in every way.","breadcrumb":{"@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#primaryimage","url":"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/08\/chafa-logo-still.png","contentUrl":"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/08\/chafa-logo-still.png","width":488,"height":310},{"@type":"BreadcrumbList","@id":"https:\/\/hpjansson.org\/blag\/2019\/08\/05\/chafa-1-2-0\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hpjansson.org\/blag\/"},{"@type":"ListItem","position":2,"name":"Chafa 1.2.0: Faster than ever, now with 75% more grit"}]},{"@type":"WebSite","@id":"https:\/\/hpjansson.org\/blag\/#website","url":"https:\/\/hpjansson.org\/blag\/","name":"Et tu, Cthulhu","description":"Personal blag of Hans Petter Jansson: Fun with computers edition","publisher":{"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hpjansson.org\/blag\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c","name":"Hans Petter Jansson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g","caption":"Hans Petter Jansson"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g"},"sameAs":["https:\/\/hpjansson.org\/","https:\/\/x.com\/hpj"]}]}},"_links":{"self":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":6,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"predecessor-version":[{"id":774,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts\/481\/revisions\/774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/media\/491"}],"wp:attachment":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}