Hi,
You can read the image using Magick package as below.
library(magick)
img = image_read("C:\\Users\\Cherukuri_Sindhu\\Downloads\\teams.jpg")
To resize the image, use image_scale() function.
img_scale = image_scale(img, "[Value]") #for resizing width
img_scale = image_scale(img, "[xValue]") #for resizing height
To resize both height and width, try below code -
image_scale(image_scale(img,"[Value]"),"x[value]")
where value is either relative to parent object or fixed size values.
Value = 100% or 500 or 200%, etc.