1.0.3 • Published 5 years ago

@peterting/psd-plugin v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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.....
});
1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago