Commit 77c41405 authored by Ryan LeFevre's avatar Ryan LeFevre

Better examples

parent e4cab0d5
...@@ -23,7 +23,9 @@ var PSD = require('psd'); ...@@ -23,7 +23,9 @@ var PSD = require('psd');
var psd = PSD.fromFile("path/to/file.psd"); var psd = PSD.fromFile("path/to/file.psd");
psd.parse(); psd.parse();
console.log(psd.header.export()); console.log(psd.tree().export());
console.log(psd.tree().childrenAtPath('A/B/C')[0].export());
psd.image.saveAsPng('./output.png').then(function () { console.log('success!') });
``` ```
### Browser ### Browser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment