Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image_to_mosaic with dithering return error #34

Open
kevin-netsrik opened this issue May 21, 2020 · 2 comments
Open

image_to_mosaic with dithering return error #34

kevin-netsrik opened this issue May 21, 2020 · 2 comments
Labels
brickr mosaics Issues related to mosaics bug Something isn't working

Comments

@kevin-netsrik
Copy link

R return error when dithering is TRUE, maybe is R version issue?

demo_img = file.path(getwd(),'test.png')
mosaic1 <- png::readPNG(demo_img) %>% image_to_mosaic(img_size = 48, dithering = TRUE)
Error: Assigned data `as.character(...)` must be compatible with row subscript `mosaic_base$x == xx & mosaic_base$y == yy`.
✖ 1 row must be assigned.
✖ Assigned data has 2 rows.
ℹ Row updates require a list value. Do you need `list()` or `as.list()`?
Backtrace:
     █
  1. └─`%>%`(...)
  2.   ├─base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3.   └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
  4.     └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
  5.       └─`_fseq`(`_lhs`)
  6.         └─magrittr::freduce(value, `_function_list`)
  7.           ├─base::withVisible(function_list[[k]](value))
  8.           └─function_list[[k]](value)
  9.             └─brickr::image_to_mosaic(...)
 10.               └─`%>%`(...)
 11.                 ├─base::withVisible(eval(quote(`_fseq`(`
Execution halted
$ R --version
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
@ryantimpe ryantimpe added brickr mosaics Issues related to mosaics bug Something isn't working labels May 21, 2020
@ryantimpe
Copy link
Owner

Thanks! Will check it out.

@jalapic
Copy link

jalapic commented Oct 15, 2020

get the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brickr mosaics Issues related to mosaics bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants