adobe-photoshop / generator-core

Core Node.js library for Adobe Photoshop CC's Generator extensibility layer
MIT License
692 stars 97 forks source link

how to clip layer by custom bounds #354

Closed chrislearn closed 8 years ago

chrislearn commented 8 years ago

Is there a way I can clip layers by custom bounds?

GDreyV commented 8 years ago

I guess you can use 'extract' parameter to extract custom area from the bitmap you got by the getPixmap: https://github.com/adobe-photoshop/generator-core/blob/master/lib/generator.js#L1592