Agamnentzar / ag-psd

Javascript library for reading and writing PSD files
Other
493 stars 66 forks source link

Add ability to export rendering to JPG or PNG with smart object support #200

Open jakeleventhal opened 2 hours ago

jakeleventhal commented 2 hours ago

After adding an image to a smart object layer, you should be able to render an image that can be both rendered in the browser as well as downloaded directly to the machine as a JPG/PNG. The rendering should ensure that all layers/shadows/etc. are properly rendered. Most importantly, this should be able to function strictly in the browser.

For example, screenshot 1 shows a PSD with a smart object for the art inside the frame.

Screenshot 2024-09-25 at 9 31 56 AM

Screenshot 2 shows a PSD with an image (the cherries) added in the frame. You will notice that the lighting and shadows from the lamp are clearly rendered.

Screenshot 2024-09-25 at 9 32 06 AM
jakeleventhal commented 2 hours ago

Related:

Agamnentzar commented 2 hours ago

This library is intended for reading and writing PSD file contents, it's not intended to be fully featured rendering engine of Photoshop.