meltingice / psd.js

A Photoshop PSD file parser for NodeJS and browsers
MIT License
2.75k stars 391 forks source link

Support for linked smart objects #47

Open jimlei opened 8 years ago

jimlei commented 8 years ago

Is it possible we'll see support for linked smart objects in near future? Maybe it's already there and I'm just not doing something right...

I am thinking of having several PSD templates where I have one or more linked smart objects with transformations, distortions, layers, etc. Then in a web service users can upload their own images that would be swapped with the linked smart objects. This would make it really easy to render complex and custom images. You could literally just copy the wanted images into a tmp folder (that originally contained linked smart objects) and render the custom image. It would be immensely helpful as transformations, overlays etc is much easier to just do in Photoshop than imagemagick or similar.

Simple example could be a 3D rendered living room where users could upload their own pictures which would be added to the picture frames in the render.

kernelogic commented 8 years ago

+1, I'd like to get the filename/path of the linked smart object layer. How to do this with psd.js?

tysoncadenhead commented 7 years ago

+1, this is a really important feature for me

fabulousduck commented 7 years ago

As this is something many people want, I will mark this to be looked at for the vanilla rewrite.

letrungut0607 commented 5 years ago

HI fabulousduck, Can you help me this issue?

nikmauro commented 5 years ago

+1

nikmauro commented 5 years ago

Is it possible we'll see support for linked smart objects in near future? Maybe it's already there and I'm just not doing something right...

I am thinking of having several PSD templates where I have one or more linked smart objects with transformations, distortions, layers, etc. Then in a web service users can upload their own images that would be swapped with the linked smart objects. This would make it really easy to render complex and custom images. You could literally just copy the wanted images into a tmp folder (that originally contained linked smart objects) and render the custom image. It would be immensely helpful as transformations, overlays etc is much easier to just do in Photoshop than imagemagick or similar.

Simple example could be a 3D rendered living room where users could upload their own pictures which would be added to the picture frames in the render.

@jimlei have you find solution for this?

kratosvn commented 5 years ago

+1 it's very nice feature

shubham-pixelnx commented 4 years ago

+1 We still want this in 2020 too

kennydude commented 3 years ago

i'm not too sure on how to translate this to pdf.js but there is a python version of this sort of thing -- https://github.com/psd-tools/psd-tools/blob/master/src/psd_tools/api/smart_object.py