{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/magick/issues/27","repository_url":"https://api.github.com/repos/ropensci/magick","labels_url":"https://api.github.com/repos/ropensci/magick/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/magick/issues/27/comments","events_url":"https://api.github.com/repos/ropensci/magick/issues/27/events","html_url":"https://github.com/ropensci/magick/issues/27","id":177124405,"number":27,"title":"image_montage","user":{"login":"romainfrancois","id":2625526,"avatar_url":"https://avatars.githubusercontent.com/u/2625526?v=3","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-15T09:02:31Z","updated_at":"2016-09-15T13:27:30Z","closed_at":null,"body":"I'm trying to use `image_montage` perhaps I don't know how, but I get: \r\n\r\n```r\r\n> image_read(files) %>% image_montage()\r\nFontconfig warning: line 146: blank doesn't take any effect anymore. please remove it from your fonts.conf\r\nFontconfig warning: line 146: blank doesn't take any effect anymore. please remove it from your fonts.conf\r\nError in eval(substitute(expr), envir, enclos) : \r\n  Magick: NoDecodeDelegateForThisImageFormat `' @ error/blob.c/ImagesToBlob/1813\r\n> \r\n> traceback()\r\n6: stop(list(message = \"Magick: NoDecodeDelegateForThisImageFormat `' @ error/blob.c/ImagesToBlob/1813\", \r\n       call = eval(substitute(expr), envir, enclos), cppstack = NULL))\r\n5: .Call(\"magick_magick_image_write\", PACKAGE = \"magick\", input, \r\n       format, quality)\r\n4: magick_image_write(image, format, quality)\r\n3: image_write(x, path = tmp)\r\n2: `print.magick-image`(x)\r\n1: function (x, ...) \r\n   UseMethod(\"print\")(x)\r\n```\r\n\r\nThis however seems to create something that makes sense: \r\n\r\n```r\r\n> montage <- image_read(files) %>% image_montage()\r\n> str( montage )\r\nClass 'magick-image' <externalptr> \r\n> montage[[1]]\r\n4 channel 768x504 bitmap array: raw [1:4, 1:768, 1:504] ff ff ff ff ...\r\n - attr(*, \"class\")= chr [1:2] \"bitmap\" \"reba\"\r\n```\r\n\r\nbut then: \r\n\r\n```r\r\n> montage\r\nError in eval(substitute(expr), envir, enclos) : \r\n  Magick: NoDecodeDelegateForThisImageFormat `' @ error/blob.c/ImagesToBlob/1813\r\n```\r\n\r\nThis seems to work: \r\n\r\n```r\r\nimage_write(montage, format = \"jpeg\", path = \"/tmp/test.jpeg\")\r\n```\r\n\r\n![test](https://cloud.githubusercontent.com/assets/2625526/18544023/11946be4-7b33-11e6-8290-44ca967a6c02.jpeg)\r\n\r\nAlso, it seems that the `image_montage` function does not offer the `geometry` (or any other option actually, e.g. background, etc ...) control as in the [underlying api](http://www.imagemagick.org/script/montage.php)\r\n\r\n`files` that I use above is the list of [these images](https://github.com/tmm1/emoji-extractor/tree/master/images/160x160)\r\n\r\n```r\r\n# git clone https://github.com/tmm1/emoji-extractor.git\r\nfiles <- list.files( \"emoji-extractor/images/160x160/\", full.names = TRUE )\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ropensci/magick/issues/comments/247327427","html_url":"https://github.com/ropensci/magick/issues/27#issuecomment-247327427","issue_url":"https://api.github.com/repos/ropensci/magick/issues/27","id":247327427,"user":{"login":"romainfrancois","id":2625526,"avatar_url":"https://avatars.githubusercontent.com/u/2625526?v=3","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T13:27:30Z","updated_at":"2016-09-15T13:27:30Z","body":"Thanks, I guess this would just be a matter of adding some parameter to `image_montage` , e.g. `tile` etc ... I might have a go later, it does not look that hard to replicate what  you've done with other functions. "}}
{"actor":{"display_login":"romainfrancois"}}