Skip to main content
rajzzsoni
Participating Frequently
July 27, 2019
Question

Saving Problem in Photoshop.

  • July 27, 2019
  • 4 replies
  • 794 views

I have been trying to generate mockup for mobile back case.

I am trying to this using action.

Action Steps are(Currently)

I have opened template/mock for particular phone model lets say iPhone 6.

1. Select all from image (which is opened using batch mode source folder)

2.copy

3. Paste(previous tab i.e template/mock)

4. create Clipping into layer mask.

5. menu item select free transform( to transform image and set it into particular mock).

6.Save as to save file (this is also an issue explained below)

7.Delete current layer from template/mock (if i don't delete this it disturbs the functioning of action in second iteration it self.)

what Output i am getting from this is

And what i want to achieve is

this is what i want to achieve

Issue in step 7 of action is, when at end of action saving it save as shown in screenshot 1 which is incorrect so i have to add save as in between of action but this leads to manual number while action and which is time consuming and tiring.

Can anyone help me out with this at earliest possible.

awaiting for help.

thankyou

This topic has been closed for replies.

4 replies

JJMack
Community Expert
Community Expert
August 2, 2019

Collage Templates have four simple rules for my toolkit's scripts.  One rule is there needs to be a Background Its required. Its content can be anything. Here is what the template I used looks like. Alpha Channel "Image 1" maps where the Case image will be placed. It will be a smart object layer over the background layer. The Script need the Background so  it can place in the images above the background layer below all the other layer in the template.

JJMack
rajzzsoni
rajzzsoniAuthor
Participating Frequently
August 3, 2019

I changed template but it is not working.

JJMack
Community Expert
Community Expert
August 3, 2019

It is so simple.  Delete you template. Open a new document the size you want your template  to be. So  many Pixels wide so many pixels high. at some resolution setting.  The will open a new document with a Photoshop Background layer which is required for my toolkit scripts.  Your templates did not have a background layer.

Wait lets make it even easier.  Open a jpeg image of a iPhone 6 in a case.  It will open as a document that has a single Background layer containing the iPhone 6 in a caste..  Next select only the Case.  Save this Selection as Alpha Channel "Image 1" to map the location, size, and shape of the case.  Save the document as  iPhone6Case.psd. That is you Template File. Close the document and run my script.

JJMack
JJMack
Community Expert
Community Expert
July 30, 2019

Photo Collage and Mockup Toolkit

Photoshop scripting is powerful and I believe this package demonstrates this. Here is a video showing a 5 image collage PSD template  being populated with images

The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.

  1. Size the photo collage templates for the print size you want - width, height and print DPI resolution.
  2. Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
  3. Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
  4. Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.

There are  eighteen scripts in this package they provide the following functions:

  1. HelpPhotoCollageToolkit.jsx - Online Help
  2. TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
  3. CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
  4. LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
  5. InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
  6. ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
  7. ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
  8. PopulateCollageTemplate.jsx  - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
  9. BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
  10. BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
  11. PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
  12. BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder. Images Rotates for best fit.
  13. BatchPicturePackageNoRotate.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder.
  14. PopulatePicturePackage.jsx - Used to Automatically populate a Photo Collage template Fill with the same single image and leave the populated copy open in Photoshop.
  15. PCTpreferences.jsx - Preferences Use in several of the above scripts. Edit this file to change default settings and add layer styles.
  16. BatchReplaceOneObject.jsx - Used to populate simple Mockup templates. Simple Mockup have one rule the top layer must be a Smart Object Layer it contents will be replaced and a Jpeg file saved.
  17. BatchUpdateSmartObject.jsx - Used to populate simple Mockup templates like BatchReplaceOneObject script but can update more than a single smart object layer.
  18. BatchMockupTemplates.jsx - Used to populate mutiple Mockup Template that need to be populated eith the same replacement image objects.

Mockup Support Added

I created my Photoshop Photo Collage Toolkit nine years ago and Avoided supporting Templates that used Smart Object layers to warp, to add perspective,  to rotate, add any distortion to images. Because replacement Image file needed to have exactly the same Aspect Ratio, Size  and Print resolution as the Object in the Template's smart object layers object. Lately there have been some threads in Adobe Photoshop scripting forums dealing with updating/populating  products Mockups Templates that have prototype smart object layers that need to be updated to create the output mockup files.  These were good threads and prompted me to do some thinking.

So like my Photo Collage Template design has four simple rules.   I came up with four simple rules for Mockup templates.  I find that I can easily modify Photo Collage Templates and Mockup Template files I download from the web so they comply with my Photo Collage Template rules or my Simple Mockup Template rules.   Mockup templates may be far from simple the only simple part is they are easy to update.  So I have add support to my Photo Collage Toolkit to support Mockup templates.

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 that Photoshop creates. Avoid using PNG objects in Mockup template. For when replace content is used to replace .png  objects within a .psd template which has your png's object the replace content operation is very slow.
  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.

For Details and Download use this link Free Photoshop Photo Collage and Mockup Toolkit

JJMack
Akash Sharma
Legend
July 29, 2019
c.pfaffenbichler
Community Expert
Community Expert
July 29, 2019

You may want to restructure the template file so that you can replace a Smart Object instead of pasting and search the Scripting Forum

Photoshop Scripting

for »replace smart object« or similar.

Or start a new thread over there and provide the template and some sample files or at least screenshots including the Layers Panel to clarify.

rajzzsoni
rajzzsoniAuthor
Participating Frequently
July 31, 2019

This is screenshot of layer pane of template i am using.

Images go clipping on green(case) layer.

c.pfaffenbichler
Community Expert
Community Expert
July 31, 2019

As I already stated I think you should restructure the fie so that you can replace the design in a Smart Object.