@peterting/psd-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Some PSD.js plugins

What does these plugins do ?

  1. Allow exporting png with original size. (Transparent part will not be trimmed.)

Todo: Allow export combined png(s) from chosen group.

Installation

npm i @peterting/psd-plugin

Example

import PsdPlugin from '@peterting/psd-plugin';

// Get original size png.
PsdPlugin.toPng(psdNode, psOriginalWidth, psOriginalWidth).then((imgSrc) => {
	console.log(imgSrc); // data:image/png;base64,Iekdkad.....
});

Readme

Keywords

Package Sidebar

Install

npm i @peterting/psd-plugin

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

9.52 kB

Total Files

11

Last publish

Collaborators

  • peterting