Crop image in R
问题 I am trying to crop an image using the magick package in R. My goal is to crop the upper left corner portion of the image. So far my code seems to work for some images but the same dimensions do not work for other images.This is my code: library(magick) library(tidyverse) image_read("http://www.gettyimages.com/gi-resources/images/Plugins/Chrometab.jpg")%>% image_chop("0x185+190")%>%image_crop("50x55+1") I am doing this for several images all of which have the dimensions width 320 height 240.