Skip to main content
Participating Frequently
July 3, 2020
Question

Batch replacement of smart object in laptop mockup.

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

Itach__iAuthor
Participating Frequently
July 7, 2020

You wrote " it no resizeing my images.."

 

The thing is smart object need to be replaced with the same size object as in the template.    If you want to be able to use any size image file for replacing for replacing smart object you can try using the scripts edit option. That should do an acceptable job as long as the difference between  Object Aspect Ratio and replacement images Aspect Ratio is not too great.   The Object in the Template must then also be a Photoshop  Object the The Scripts can not edit Raw File object or vector file objects for Photoshop does not support those files. The script will bypass editing those smart object and let you know that the are being skipped.  The Scripts edit and resize your images to fill the smart Object canvas.  If the Aspect ratios are not an exact match there will be some images content loss.  Read the documentation its all in there.   Smart Object Layers are neither Smart or Magic.  You do not seem to know anything about smart object layers. Your the problem the Templates and Script most likely are good.   Your using images that are not sutable for the templates you are trying to use. 


Thanks its working fine...Will 2 mockups work at a same time???