Displaying 1 result from an estimated 1 matches for "image_tcl2".
Did you mean:
image_tcl
2020 Jul 09
0
Is this surprising behavior of tkimage.create function a bug?
...)
image_tcl <- tkimage.create("photo", "image_tcl", file = tmp)
# doesn't work fine
logo2 <- image_convert(logo, format = "jpeg")
tmp2 <- tempfile(fileext = ".jpg")
image_write(logo2, tmp2)
image_tcl <- tkimage.create("photo", "image_tcl2", file = tmp2)
------------------------------------------------------------------------------------
The last line returns an error below.
> Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] couldn't recognize data in image file
"C:\Users\shot...