abstract class PsdTools

Tools for working with specified layers of a Photoshop image

Methods

getLayer(PsdLayer|int ...$layers)

Delivers an image containing only specified layers of a Photoshop image.

smartObject(SmartObject|int ...$smartObjects)

Extracts the original content of an embedded object of a Photoshop image.

clip(int|string $clippingPath = null)

Trims the pixels of a PSD image according to a Photoshop clipping path that is stored in the image's metadata.

Details

static PsdLayer getLayer(PsdLayer|int ...$layers)

Delivers an image containing only specified layers of a Photoshop image.

static SmartObject smartObject(SmartObject|int ...$smartObjects)

Extracts the original content of an embedded object of a Photoshop image.

Parameters

Name Type Description
...$smartObjects SmartObject|int

Return Value

SmartObject

static ClippingPath clip(int|string $clippingPath = null)

Trims the pixels of a PSD image according to a Photoshop clipping path that is stored in the image's metadata.

Parameters

Name Type Description
$clippingPath int|string Number or the name of the clipping path.

Return Value

ClippingPath