bgreenwell / RBitmoji

An R wrapper to the overly complicated Bitmoji API 😱
24 stars 5 forks source link

Remove magick dependency #5

Closed bgreenwell closed 6 years ago

bgreenwell commented 6 years ago

Using RCurl::getURLContent() with png::readPNG() works:

url <- "https://render.bitstrips.com/v2/cpanel/10212662-8b06e67b-d4e9-4f11-a355-f1236df17079-8b06e67b-d4e9-4f11-a355-f1236df17079-v1.png?transparent=1&palette=1&width=300"
library(RCurl)
library(png)
plot(as.raster(readPNG(getURLContent(url))))