blog_img_sq: Crop and scale header to square

Description Usage Arguments Examples

View source: R/header_sizer.R

Description

Crop and scale header to square

Usage

1
2
3
4
5
6
7
8
9
blog_img_sq(
  image,
  width_px = 300,
  height_px = 300,
  wcrop_px = 2988,
  hcrop_px = 2988,
  woffset_px = 1200,
  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_sq("some_image.jpg")

## End(Not run)

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