Skip to main content
Participating Frequently
July 3, 2020
Question

Batch replacement of smart object in laptop mockup.

  • July 3, 2020
  • 1 reply
  • 2726 views

Hey 

I have laptop mockup and almost 10,000 images and i want to put every single pic in mockup and save it as png. or jpg but i cant to do it one by one as it take a ages to do.So if anyone know any script which can work like that please answer me,it will be a great help..

Thank you

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
July 3, 2020

My Free Photoshop Photo Collage and Mockup Toolkit  Saves jpeg files for populated mockups and can optionally save a PSD layered version.  There is no png option.  The scripts are text .JSX files you could easily add png saving. To populate 10,000 images the script run time will be long.  Have a good bottle of wine to enjoy as you watch the script perform it deed.  Your laptop need freespace for Photoshop's scratch and 10,000 new jpeg files.

JJMack
Itach__iAuthor
Participating Frequently
July 7, 2020

Hey 

Thanks for your help,but i already know about your toolkit but i dont know how to use it.It will be a great help if you provide me some tutorial.you can mail me"shivamnegi896@gmail.com"

JJMack
Community Expert
Community Expert
September 10, 2020

As I'm here... will ask just one more thing! Thanks if you can!
I have mainly 2:3 and 3:4 ratio images, the mockups I'm making they're exactly for the 3:4 ratio but would be great if the script can stretch the 2:3 images to fit the 3:4 (fit the height and stretch the width).
The picture are almost all abstract designs that will not suffer that much of that minimum distortion...
I've tried read some other post but don't manage to get it if it can be done!
Thanks a lot in advance! (and... if you have a Paypal or smthg else, I can also contribute with something for the script and for help).


If the replacements are not the correct size and the object in the template are Photoshop objects you can use the Scripts edit option.  Replacement will be edited into the existing object and resized to fill the Object canvas. Excess image areas will be clipping by the objects canvas. The replaced image will look a centered 3:4 crop expand the fill the 3:4 canvas.  So you will loose some image content if the image aspect ratio are different the the original objects. I do not distort images into the wrong aspect ratio area. My process is more a centered crop resize. If you do not want to loose content in addition to Edit you can check the Fit Image option, The images will be fitted to the object canvas, Wrong aspect ratio image will have two borders. Top bottom or left and right.

JJMack