{"id":8580,"date":"2016-11-18T17:44:50","date_gmt":"2016-11-18T16:44:50","guid":{"rendered":"http:\/\/www.wjst.de\/blog\/?p=8580"},"modified":"2016-11-18T21:56:05","modified_gmt":"2016-11-18T20:56:05","slug":"imagick-library-for-r","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2016\/11\/imagick-library-for-r\/","title":{"rendered":"Imagick library for R"},"content":{"rendered":"<p>When working for an exhibition in 2017, I found a new R library that allows nearly every image modification you could think of.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\ninstall.packages(&quot;magick&quot;)\r\nlibrary(magick)\r\nmagick_config()\r\n<\/pre>\n<p>gives you<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nimage_read(path, density = NULL, depth = NULL)\r\nimage_write(image, path = NULL, format = NULL, quality = NULL, flatten = FALSE)\r\nimage_display(image, animate = TRUE)\r\nimage_browse(image, browser = getOption(&quot;browser&quot;))\r\nimage_append(image, stack = FALSE)\r\nimage_average(image)\r\nimage_coalesce(image)\r\nimage_flatten(image, operator = NULL)\r\nimage_fft(image)\r\nimage_map(image, map, dither = FALSE)\r\nimage_montage(image)\r\nimage_morph(image, frames)\r\nimage_mosaic(image, operator = NULL)\r\nimage_join(...)\r\nimage_info(image)\r\nimage_animate(image, fps = 10, loop = 0, dispose = c(&quot;background&quot;,&quot;previous&quot;, &quot;none&quot;))\r\n<\/pre>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 30.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>When working for an exhibition in 2017, I found a new R library that allows nearly every image modification you could think of. install.packages(&quot;magick&quot;) library(magick) magick_config() gives you image_read(path, density = NULL, depth = NULL) image_write(image, path = NULL, format = NULL, quality = NULL, flatten = FALSE) image_display(image, animate = TRUE) image_browse(image, browser = &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2016\/11\/imagick-library-for-r\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Imagick library for R<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-8580","post","type-post","status-publish","format-standard","hentry","category-computer-software"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/8580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=8580"}],"version-history":[{"count":3,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/8580\/revisions"}],"predecessor-version":[{"id":8586,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/8580\/revisions\/8586"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=8580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=8580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=8580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}