Question about resolution

Hi,

I'm making a small app where I upload a pdf to shinayapps.io using Magick package and then do some changes, and then save it.

pdffig <- image_read("www/foo.pdf",density="400x400")

Some manipulations which doesnt matter...

image_write(pdffig, path = "www/foo1.pdf")

When running the program on my computer everything works out fine and I can change the resolution using density, but when running on shinyapps.io the density command doesnt work and I get a bad resolution not matter what I density I set.

I tried:
library(Cairo)
options(shiny.usecairo=T)
as I read that it may help but it didnt.

Any suggestions?
Cheers
Johan

1 Like

Experiencing a similar issue, and suspect it's due to an outdated magick installation on the shinyapps.io server side. I've posted a ticket here if you wish to track: https://github.com/rstudio/shinyapps-package-dependencies/issues/122