Photoshop Image from html to layer(Photoshop extension)

70 Views Asked by At

I want to create a layer and at the same time put an image from html to it. So far I did something like this:

var doc=document.getElementByID("img1");  //img1 is from html,it is an img tag
var newLayerRef = app.activeDocument.artLayers.add(doc);

Could someone help me?

0

There are 0 best solutions below