image_compose | R Documentation |
Extends 'image_composite()' to include 'gravity' argument which allows targeted placement of images
image_compose( image, composite_image, operator = "atop", gravity = "NorthWest", offset = "+0+0", compose_args = "" )
image |
original image which will remain in the background (also known as "destination" image) |
composite_image |
image place on top of it (aslo known as "source" image) |
operator |
magick operator. See more at [ImageMagick compose](https://www.imagemagick.org/Usage/compose/) page. Default: 'atop' |
gravity |
one of ‘magick::gravity_types()'. Default: ’NorthWest' |
offset |
geometry point specification of offset. Affected by choice of ‘gravity'. Default: ’+0+0' |
compose_args |
other parameters required by operator. Default: ” |
combined image
attributes
,composite
geometry_parse
## Not run: if(interactive()){ frink <- image_read("https://jeroen.github.io/images/frink.png") image_compose(frink, magick::rose, gravity="North") } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.