Skip to main content

Class: ModifyImageHelper

Defined in: src/helper/modify-image-helper.ts:15

Constructors

Constructor

new ModifyImageHelper(): ModifyImageHelper

Returns

ModifyImageHelper

Methods

setDuotoneFill()

static setDuotoneFill(duotoneParams): (element) => void

Defined in: src/helper/modify-image-helper.ts:147

Parameters

duotoneParams
color?

Color

prstClr?

string

satMod?

number

tint?

number

Returns

(element) => void


setRelationTarget()

static setRelationTarget(filename): (element, arg1) => void

Defined in: src/helper/modify-image-helper.ts:21

Update the "Target" attribute of a created image relation. This will change the image itself. Load images with Automizer.loadMedia

Parameters

filename

string

name of target image in root template media folder.

Returns

(element, arg1) => void


setRelationTargetCover()

static setRelationTargetCover(filename, pres): (element, arg1) => Promise<void>

Defined in: src/helper/modify-image-helper.ts:40

Update the "Target" attribute of a created image relation. This will change the image itself. Load images with Automizer.loadMedia This will also auto-crop the image to the new width and height, based on the container aspect ratio, derived from the original image and using the new image width and height based on the files loaded into the presentation media folder using .loadMedia()

Parameters

filename

string

name of target image in root template media folder.

pres

IPresentationProps

presentation properties (to access the root template archive)

Returns

(element, arg1) => Promise<void>