{"action":"created","issue":{"url":"https://api.github.com/repos/dahtah/imager/issues/39","repository_url":"https://api.github.com/repos/dahtah/imager","labels_url":"https://api.github.com/repos/dahtah/imager/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/dahtah/imager/issues/39/comments","events_url":"https://api.github.com/repos/dahtah/imager/issues/39/events","html_url":"https://github.com/dahtah/imager/issues/39","id":208405111,"number":39,"title":"\"TIFF\" format images seem not to be properly converted","user":{"login":"aTnT","id":3149376,"avatar_url":"https://avatars.githubusercontent.com/u/3149376?v=3","gravatar_id":"","url":"https://api.github.com/users/aTnT","html_url":"https://github.com/aTnT","followers_url":"https://api.github.com/users/aTnT/followers","following_url":"https://api.github.com/users/aTnT/following{/other_user}","gists_url":"https://api.github.com/users/aTnT/gists{/gist_id}","starred_url":"https://api.github.com/users/aTnT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aTnT/subscriptions","organizations_url":"https://api.github.com/users/aTnT/orgs","repos_url":"https://api.github.com/users/aTnT/repos","events_url":"https://api.github.com/users/aTnT/events{/privacy}","received_events_url":"https://api.github.com/users/aTnT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-17T10:50:32Z","updated_at":"2017-02-17T12:49:52Z","closed_at":null,"body":"Here's an image example (file can be [downloaded here](http://www.filedropper.com/194336662036921212017)):\r\n\r\n```\r\n> iminfo(image_path)\r\n\r\n$name\r\n[1] \"19_433666_203692_1212017.tif\"\r\n\r\n$format\r\n[1] \"TIFF\"\r\n\r\n$width\r\n[1] 256\r\n\r\n$height\r\n[1] 256\r\n\r\n$size\r\n[1] 327221\r\n```\r\n\r\nThis is how the image normally looks (using imagemagick):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3149376/23062166/0678137c-f505-11e6-8e8d-438f7c01acf5.png)\r\n\r\nWhen running:\r\n\r\n```\r\n> load.image(image_path) %>% display()\r\n```\r\n\r\nI get:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3149376/23062287/77440aac-f505-11e6-8546-967909c36a11.png)\r\n\r\nI get the same result with plot().\r\n\r\nWhen saving the image object back to tif with save. image() and opening with imagemagick i get the same result:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3149376/23063152/4bcd7b34-f509-11e6-9bc1-51a1c16af4e6.png)\r\n\r\nThis is my sessionInfo()\r\n\r\n```\r\n\r\nR version 3.3.2 (2016-10-31)\r\nPlatform: x86_64-pc-linux-gnu (64-bit)\r\nRunning under: Ubuntu 16.04.1 LTS\r\n\r\nlocale:\r\n [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=nl_NL.UTF-8       \r\n [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=nl_NL.UTF-8    LC_MESSAGES=en_US.UTF-8   \r\n [7] LC_PAPER=nl_NL.UTF-8       LC_NAME=C                  LC_ADDRESS=C              \r\n[10] LC_TELEPHONE=C             LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C       \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n [1] dplyr_0.5.0     purrr_0.2.2     readr_1.0.0     tidyr_0.6.1     tibble_1.2     \r\n [6] ggplot2_2.2.1   tidyverse_1.1.1 imager_0.31     magrittr_1.5    plyr_1.8.4     \r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.9      forcats_0.2.0    tools_3.3.2      lubridate_1.6.0  jsonlite_1.2    \r\n [6] nlme_3.1-128     gtable_0.2.0     lattice_0.20-34  png_0.1-7        psych_1.6.12    \r\n[11] DBI_0.5-1        parallel_3.3.2   haven_1.0.0      readbitmap_0.1-4 bmp_0.2         \r\n[16] xml2_1.1.1       httr_1.2.1       stringr_1.1.0    hms_0.3          grid_3.3.2      \r\n[21] R6_2.2.0         jpeg_0.1-8       readxl_0.1.1     foreign_0.8-67   modelr_0.1.0    \r\n[26] reshape2_1.4.2   scales_0.4.1     rvest_0.3.2      assertthat_0.1   mnormt_1.5-5    \r\n[31] colorspace_1.3-2 stringi_1.1.2    lazyeval_0.2.0   munsell_0.4.3    broom_0.4.2    \r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dahtah/imager/issues/comments/280640568","html_url":"https://github.com/dahtah/imager/issues/39#issuecomment-280640568","issue_url":"https://api.github.com/repos/dahtah/imager/issues/39","id":280640568,"user":{"login":"dahtah","id":3213584,"avatar_url":"https://avatars.githubusercontent.com/u/3213584?v=3","gravatar_id":"","url":"https://api.github.com/users/dahtah","html_url":"https://github.com/dahtah","followers_url":"https://api.github.com/users/dahtah/followers","following_url":"https://api.github.com/users/dahtah/following{/other_user}","gists_url":"https://api.github.com/users/dahtah/gists{/gist_id}","starred_url":"https://api.github.com/users/dahtah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahtah/subscriptions","organizations_url":"https://api.github.com/users/dahtah/orgs","repos_url":"https://api.github.com/users/dahtah/repos","events_url":"https://api.github.com/users/dahtah/events{/privacy}","received_events_url":"https://api.github.com/users/dahtah/received_events","type":"User","site_admin":false},"created_at":"2017-02-17T12:49:52Z","updated_at":"2017-02-17T12:49:52Z","body":"It looks like your TIFF file is pretty exotic. The gimp won't read it (Unsupported layout), eog won't read it, and in R tiff::readTIFF won't load it either. How was it produced? "}}
{"actor":{"display_login":"dahtah"}}