blog_img_wd: Crop and scale header to wide

Description Usage Arguments Examples

View source: R/header_sizer.R

Description

Crop and scale header to wide

Usage

1
2
3
4
5
6
7
8
9
blog_img_wd(
  image,
  width_px = 800,
  height_px = 200,
  wcrop_px = 0,
  hcrop_px = 0,
  woffset_px = 0,
  hoffset_px = 0
)

Arguments

image

a jpeg image

width_px

output width pixels

height_px

output height pixels

wcrop_px

selected width pixels to crop, defaults to center?

hcrop_px

selected height pixels to crop defaults to center?

woffset_px

plus or minus horizontal pixels from center most

hoffset_px

plus or minus vertical pixels from center most

Examples

1
2
3
4
## Not run: 
blog_img_wd("inst/extdata/sample_header.jpg", wcrop_px = 800, hcrop_px = 200, woffset_px = 50, hoffset_px = 50)

## End(Not run)

mjbroerman/imgpreppr documentation built on Jan. 1, 2021, 10:28 a.m.