Skip to main content
Participating Frequently
July 3, 2020
Question

Batch replacement of smart object in laptop mockup.

  • July 3, 2020
  • 1 reply
  • 2732 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"

Bojan Živković11378569
Community Expert
Community Expert
July 7, 2020

thank you for your help,but images are not resizeing according to mockup....if you know any mock which will work fine with your script please send me...it will help me alot..


What is actual problem? Perhaps your images are different dimensions and orientation/aspect ratio? Try to fix that first. Find image which works well with mockup then adjust all other images according to that image befors running batch to replace.

 

In essence, you must find which dimensions and aspect ratio works for your template if script does not do job perfectly, what is most likely if your images are not same dimensions and orientation because script is not created for your project specifically.

 

There is also another option using data sets to replace image in template and along way to scale image to fit or fill available space. This is option which will work regardless of different dimensions and aspect ratios but it requires additional setup from your side and one additional step because it can save PSD files only which needs to be converted in batch process to desired PNG or JPEG image.