Skip to main content
Participating Frequently
July 21, 2012
Answered

How do I batch watermark a logo onto varying heights?

  • July 21, 2012
  • 5 replies
  • 27144 views

I would like to watermark a logo on a batch folder of photos, but the photos are different heights (but same width). If I use text in Photoshop it's not a problem, but if I use my logo the Action places it in different positions depending on the height of the photo. What I am looking for is a way to have the logo placed in a relative position to the bottom right corner of the photo. Say, 25px from the bottom and 0px from the right. I am unsure of how to achieve this relative placement.

    This topic has been closed for replies.
    Correct answer station_two

    There's a classic Russell Brown tutorial that might help you.  It was created for Photoshop CS2, but the technique is applicable to later versions of Photoshop too.

    Go to:  http://www.russellbrown.com/tips_tech.html , and scroll down till you see this:

    5 replies

    jeremias vigo
    Participant
    March 24, 2018

    Here is another way to do this. The language is in Portuguese but it's very easy to follow: https://www.youtube.com/watch?v=sA6xuKf8CDM

    jeremias vigo
    Participant
    March 24, 2018

    Here is a way to do this. The video language is in Portuguese but it's very easy to follow the steps: Inserir marca d'agua ou logo em várias fotos de qualquer formato simultaneamente - YouTube

    c.pfaffenbichler
    Community Expert
    Community Expert
    July 21, 2012

    In the long run it may pay off to look into Scripting for Watermarking.

    But Actions may suffice and if the logo in question (mind posting a screenshot?) is hard-edged and does use only a limited number of colors it might be convenient to vectorize it and include the paths (»Insert Path«) in the Action – that way one would not need to keep an external image avilable and could transfer the Action more easily.

    c.pfaffenbichler
    Community Expert
    Community Expert
    July 21, 2012

    You may well want to look into more accompliahed Watermarking techniques, but for your immediate problem adding

    • Select All

    • Align right

    • Align bottom

    • nudge left

    to your Action might suffice.

    JJMack
    Community Expert
    Community Expert
    July 21, 2012

    c.pfaffenbichler wrote:

    • Select All

    • Align right

    • Align bottom

    • nudge left

    to your Action might suffice.

    Because the print width is the same the same size font will work well and be align well like appended and even make your 25 pixel nudge left and up after the select all do a select>Modift Selection>Contract in the dialog 25px  Then do the Layer>Align Layers to selection>bottom edge etc without the end nudge left

    JJMack
    JJMack
    Community Expert
    Community Expert
    February 20, 2013

    Sorry, I was giving you the incorrect action. What I gave you is the action I used before I started with IP Pro in my quest to make thumbnails.

    And then my past didn't work - darn. Here is the correct one which I devised to work before IP Pro saves.

    I need a 960 pixel wide version (height relative), and now I also need the 320 px x 213 px version, named with an x.

    So you are saying I need 2 actions? Could one link to the other, or would I have to perform each action separately? And do I need your script, and/or IP Pro as well?

    Thanks again


    Action can play other actions as I wrote above.,  The hard part is cropping your image document to a 320:213 aspect ratio.  If you download my crafting actions package it contains a plug-in script I wrote for use in actions Like actions can play other actions by selecting the action in the actions palette and using the play button. Actions can also use scripts by recording menu File>Scripts>Script name.  The great thing about plug-in is many have programmed in action support.  So if you download my package and install my scripts you can record menu File>Automate>AspectRatioSelection... then in the plug-jn scripts dialog you set 320 213 centered rectangle replace selection 0 feather and no anti-alias the plug-in will record those settings into your action step. When the action is played the dialog will be bypassed the largest 320:213 centered aspect ratio selection  will be set, You follow that step with Image Crop then you record selecting the watermark action in the actions palette and click play. The action has three steps.

    I recorded the two actions the way I would. I the saved it as a text file so you can read the steps.  The watermark action set Photoshop ruler units to inches so if you record things like moves and such the are recorded in inch units. The action resizes the image width to 8" without resampling.  No pixels are changed all the happens is the document DPI resolution is set so the document would print 8" wide.  Just scales the image to 8" so if you record things like text layers the font size will be approbate for an 8" wide image.  If to add canvas the number of pixels will in inches using the 8" wide DPI resolution. The Action then Places in the logo the place transform is used to move the logo to the top left corner then holding dot the shift key the lower right corner is draged so the logo is 2" wide using the visible rule frame as a guide. The shift key constrains the transform so the logo does not deform. To size the logo 1/4 the width of the document 2"/8" .  The action then select all and modifies the selection border 20 px and then inverts the border selection so all of the image is selected but the border. The Logo is the aligned to the bottom right of the selection.

    Here is the TwoActions Set

    Set: TwoActions

              Action: Watermark

                        Set general preferences of current application

                                  To: General Preferences

                                  true

                        Set units preferences of current application

                                  To: Units & Ruler Preferences

                                  ruler units: Inches

                                  type units: Points

                        Image Size

                                  Width: 8 Inches

                        Place

                                  D:\Mr Mouse\My Documents\My Pictures\Working On\TextTutorial\TextTurorial.png

                                  Center: center

                                  Translate: -3.003 Inches, -2.358 Inches

                                  Width: 44.3%

                                  Height: 44.5%

                        Set Selection

                                  To: all

                        Border

                                  Width: 20 pixels

                        Inverse

                        Align current layer

                                  Using: bottom edges

                        Align current layer

                                  Using: right edges

                        Set Selection

                                  To: none

              Action: Crop and Watermark

                        Aspect Ratio Selection

                                   “Aspect Ratio Selection action settings”

                                  height: 213 pixels

                                  width: 320 pixels

                                  With center

                                  Without border

                                  With rectangle

                                  Without ellipse

                                  With replace

                                  Without add

                                  Without subtract

                                  Without intersect

                                  With selection

                                  Without path

                                  feather: 0 pixels

                                  Without anti-alias

                        Crop

                                  With Delete Cropped Pixels

                        Play action “Watermark” of set “TwoActions”

    JJMack
    station_two
    station_twoCorrect answer
    Inspiring
    July 21, 2012

    There's a classic Russell Brown tutorial that might help you.  It was created for Photoshop CS2, but the technique is applicable to later versions of Photoshop too.

    Go to:  http://www.russellbrown.com/tips_tech.html , and scroll down till you see this: