Smart Layer Replace is a Photoshop script for Mac and Windows that will automate the placement of several images one by one on an open document and save each to a folder as JPG, PNG, TIFF or PSD files. Technically, the content of a smart layer is replaced and transformed to fit the original dimension of the smart object. This is a useful tool for placing several or hundreds of product images on a background template.
Please view a demonstration video below.
The script can be accessed in the File > Export menu of Adobe Photoshop. A smart layer must be selected in the Layers panel first before the script can be used. It has been tested to work in Adobe Photoshop CC 2018. If the source image dimension is too tall or too wide to fit in the original smart layer, the smart layer is automatically transformed to proportionally fit within the original boundaries of the smart layer.
To prevent cropping if the new image is proportionally taller than the original smart layer dimension, the smart layer is transformed to maximum height. The same will be true for proportionally wider new images.