Extract

Description

Extracts an image or a page using an index, a range, or a name from a layered media asset.

Examples

			import {Cloudinary} from '@cloudinary/url-gen';
			
			const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}});
			const image = yourCldInstance.image('woman');
			
			import {getFrame, getPage} from '@cloudinary/url-gen/actions/extract';
			
			image.extract(
			 getFrame()
			   .byRange(1, 3) // These are mutually exclusive
			   .byNumber(5) // These are mutually exclusive
			);
			
			image.extract(
			 getPage()
			   .byRange(1, 3) // These are mutually exclusive
			   .byNumber(5) // These are mutually exclusive
			);
Details

Classes


new ExtractAction()

Methods


<static> getFrame() → {Actions.Extract.ExtractAction}

action

Description

Extracts an image containing only specified layers of a Photoshop image. Learn more: Deliver selected layers of a PSD image

Details

<static> getPage() → {Actions.Extract.ExtractAction}

action

Description

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

Details