Я хотел бы создать «монтаж» высокого разрешения 3 на 3, используя пакет magick
.
library(magick)
#> Linking to ImageMagick 6.9.7.4
#> Enabled features: fontconfig, freetype, fftw, lcms, pango, x11
#> Disabled features: cairo, ghostscript, rsvg, webp
# Read the image and resize it
frink <- image_read("https://jeroen.github.io/images/frink.png")
frink <- image_resize(frink, "100x")
# Create 1 column with 3 rows
col <- image_append(rep(frink, 3), stack = TRUE)
# "Combine" 3 columns
i <- image_append(c(col, col, col))
i
So my question is how can I save it to a high-resolution png (e.g., 300 DPI)? I was thinking to use image_write()
, but apparently I can not set the resolution I want there.
# This is not working
# image_write(i, tempfile(), res = 300)
Спасибо, Фил
Создано в 2019-05-09 пакетом представ (v0.2.1)