Agamnentzar / ag-psd

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

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

Open jakeleventhal opened 1 month ago

jakeleventhal commented 1 month 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 1 month ago

Related:

Agamnentzar commented 1 month ago

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