Run into problem batching watermark of diff image size

novetan5

Forum Enthusiast
Messages
333
Reaction score
40
I ran into a snag despite watching so many videos coz none of them has addressed the issued how to batch and maintain same watermark size to different image size. Somehow they have conveniently avoid addressing the issue, I think.

Here’s my steps leading to a frustrated end result:

1) I took the initiative to batch image resize to 1600 width (landscape with ht varies slightly here and there due to cropping) at resolution set at say 180 (pic A) 2) I have a ready logo (which will be placed at 1/3 left from bottom) with a transparency set to same width at 1600 (pic B). The ht differs slightly but doesn’t really matter coz the transparency will auto centralise. The main procedure will be to “place” the transparency over the image during an “action”. Tested the action for one image and all seems well and good ready to batch with images of different sizes.

Now the batch result. I was taken aback to find the logo can be anyhow located, sometimes even just partially shown with the rest outside of image other than the specific location. The logo may be enlarged or shrinked in size. Than I discover the reason:

After batched resize, I checked the resized image resolution (pic C and D) and found the figure may change other than 180. Logo that were correctly placed was due to similar resolution between image and transparency. I discovered as long as the resolution differs, the logo can be anywhere and differ in size. I suspect the res differs due to different in ht but surely not all images will have the same ht right?

None of the video I seen seems to address batching different image size. Some replies I read under the video comments also face similar problem and were equally bewildered. The author never seems to revert to the replies.

Can anyone advise on a solution?

Tks



Ps. Pic C ht merely differs by 1 pixel and the res changed so drastically





A
A

B
B

C
C

D
D
 
Last edited:
Are you using Adobe LightRoom? It is not immediately clear which program you are using.
 
Set your picture to percentage instead of pixels, regardless of resolution results should be the same.
 
Set your picture to percentage instead of pixels, regardless of resolution results should be the same.

--
PX
Just tried and it doesn't work.

Firstly, using % reduction is not a good solution as I cannot have a consistent reduction in size. So the display image size on my web will be inconsistent.

And the resized image still have different res. Means the logo is also misplaced.

Oh, there must be a solution to this.
 
You can not watermark icons and small thumbnails there are too few pixels. The action can be batched.

Crafting Actions Package UPDATED Aug 10, Added Conditional Action steps to Action Palette Tips.
Contains
Example

Example

Download

--
JJMack
 
Last edited:
Last edited:
You can record using a script in an action. Here is an example: A one-step action that uses a script to place in a watermark. That action is then used to batch watermark images using menu File>Automate>Image Processor Pro... That plug-in script can be downloaded from the web and installed. The Plug-in can be used from the Bridge and in Photoshop.

Batch Watermark different size images no problem at all
Batch Watermark different size images no problem at all

PlaceWatermark.jsx Download right click and save as



JJMack
JJMack



--
JJMack
 
Last edited:
You can record using a script in an action. Here is an example: A one-step action that uses a script to place in a watermark. That action is then used to batch watermark images using menu File>Automate>Image Processor Pro... That plug-in script can be downloaded from the web and installed. The Plug-in can be used from the Bridge and in Photoshop.

Batch Watermark different size images no problem at all
Batch Watermark different size images no problem at all

PlaceWatermark.jsx Download right click and save as

JJMack
JJMack

--
JJMack
JJ Mack

We are moving in circles. My problem is not abt how to batch. Ok never mind.
 
Did my script not work for you. It should be easy to change the png file used, resize and spacing done and to change where the watermark is aligned to? The first three are set in the beginning of the script. Takes no real knowledge to change. To change the transform you need to know a bit about scripting.

The watermark needs to be resized relative to images size. So that it will appear to be the same size in all images.

Change this statement to your watermark file location: ie /c/path/file

var logoFile = "~/Desktop/JJMack.png"; // Watermark file should be large for resize down works better than up

Change this statement for the resize you want:

var LogoSize = 10; // percent of document height to resize Watermark to

Change this statement for the spacing you want:

var LogoMargin = 1; // percent of Document height the Watermark should have as a margin

and change this transform statement to move the watermark to where you want it:

activeDocument.activeLayer.translate((doc.width.value -marginSize - LayerWidth),( doc.height.value -marginSize - LayerHeight));

--
JJMack
 
Last edited:
Did my script not work for you. It should be easy to change the png file used, resize and spacing done and to change where the watermark is aligned to? The first three are set in the beginning of the script. Takes no real knowledge to change. To change the transform you need to know a bit about scripting.

The watermark needs to be resized relative to images size. So that it will appear to be the same size in all images.

Change this statement to your watermark file location: ie /c/path/file

var logoFile = "~/Desktop/JJMack.png"; // Watermark file should be large for resize down works better than up

Change this statement for the resize you want:

var LogoSize = 10; // percent of document height to resize Watermark to

Change this statement for the spacing you want:

var LogoMargin = 1; // percent of Document height the Watermark should have as a margin

and change this transform statement to move the watermark to where you want it:

activeDocument.activeLayer.translate((doc.width.value -marginSize - LayerWidth),( doc.height.value -marginSize - LayerHeight));
 
Yes, most Photoshop users will never write a script. They will only use scripts others write. Like Adobe Image Fit Image, Load files into a stack, Export Layers to files, Lens Correction, Merge to HDR, Photomerge etc

There are also many others you can download from the web like

Automaticly Populate a Photo Collage Template

Photo Collage Toolkit UPDATED July 9, Updated populating scripts to position dialogs in CC 2015.

Warning about CollageTemplateBuilder script. There is a bug in Photoshop CC 2015 and CC 2015.5. They will hang if your preferences are set to edit in floating windows if you use that script.

Photoshop scripting is powerful and I believe this package demonstrates this.

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, 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", ... . These map your images Location Position, and size.
  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 fifteen 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 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. - Used to Automatically Batch Populate Collage templates that only have one image inserted. The 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.
--
JJMack
 
Last edited:
Yes, most Photoshop users will never write a script. They will only use scripts others write. Like Adobe Image Fit Image, Load files into a stack, Export Layers to files, Lens Correction, Merge to HDR, Photomerge etc

There are also many others you can download from the web like

Automaticly Populate a Photo Collage Template

Photo Collage Toolkit UPDATED July 9, Updated populating scripts to position dialogs in CC 2015.

Warning about CollageTemplateBuilder script. There is a bug in Photoshop CC 2015 and CC 2015.5. They will hang if your preferences are set to edit in floating windows if you use that script.

Photoshop scripting is powerful and I believe this package demonstrates this.

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, 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", ... . These map your images Location Position, and size.
  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 fifteen 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 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. - Used to Automatically Batch Populate Collage templates that only have one image inserted. The 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.
 
Ok, I roughly knew what you are saying. Granted the spacing from the corner can now remain the same by using %age, but will the logo size remain relative to image size? I wouldn't want to end up a large image with a tiny logo or a small image with big logo.
For instance, I followed up asking a simple and straight forward question. You circumvert with blasting 10,000 words on scripting and more scripting and intentionally add confusion which appears as though you are helping. You have alot of time huh?

Now get off from my sight
 
Last edited:
Oh common Mack,

You are the only responder to my query and I do appreciate it. But your solution did not resolve the problem. Your percentage just doesn't work and thereafter I suspect you are merely trolling, not helping at all as you continue to populate with rocket science advise that not many can understand.

Anyway I found a particular video in You Tube that really addresses the common problem am facing, one that all others putting up a video trying to avert it, or they may not even have a solution for themselves.

Bye
OK bye. If you can not change percentages to ones the work for you. I'm not going to try to teach you simple math so yes good bye

--
JJMack
 
Last edited:

Keyboard shortcuts

Back
Top