Skip to main content
Participating Frequently
July 3, 2020
Question

Batch replacement of smart object in laptop mockup.

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

The messager most like stated you did not create the sub folders in your Image collection folder.  They are require to be named  "obj0, obj1, .... objN" the replacement Images for the diffent Smar object layer layer ate the top of template layer stack.    You know the content of you replacements and where you want the content replaced.   This is spelled out in the documentation. Mockup rule 4. There are only rules.

 

Simple Mockup Templates

Four Rules

  1. Simple Mockup Templates Only the Smart Object Layer on the top of the Template layers stack will be updated then a Jpeg file saved.
  2. Only Photoshop Objects are support in the top smart objects layers. That is they can not be Object File that are not supported by Photoshop like Camera RAW Files or Illustrator file like .ai, .svg.
    I suggest these objects should be PSD or PSB the Photoshop creates. Avoid using PNG objects in Mockup template use replace content to replace .png objects with a .psd which has your png's content.
  3. The first None Smart Object Layer near the top of the layer stack Marks the end of Smart Object Layers the will be updated. Lower Smart Object Layers only update if they share top layers objects.
  4. The Replacement Image Collection need to be in sub folders named obj0, obj1, obj2, .... objN. Each folder must contains the same number of replacement Image files.

thank you sir its working....sir can you suggest me some laptop mockup i have but they are not good..