Skip to main content
jintakhan
Participant
April 23, 2018
Answered

Create rectangle with dimensions in percentage?

  • April 23, 2018
  • 1 reply
  • 410 views

I'm trying to get an action to automate putting a watermark on a photo. Since photo dimensions vary wildly because of cropping, I want to have the action set such that it creates a rectangle that scales proportionally across these dimensions. To be exact, I want it to be 35% of the width and 4% of the height of the photo. Is this possible?

(Bonus points if I can get a text box sized in the same way)

    This topic has been closed for replies.
    Correct answer c.pfaffenbichler

    You know your rules might distort the watermark/rectangle differently for landscape and portrait images for example?

    One work-around might be first setting the image width in Image > Image Size with »Resample« unchecked, then placing the watermark as an Smart Object.

    For more involved approaches you might want to consider using a Script.

    1 reply

    c.pfaffenbichler
    Community Expert
    c.pfaffenbichlerCommunity ExpertCorrect answer
    Community Expert
    April 23, 2018

    You know your rules might distort the watermark/rectangle differently for landscape and portrait images for example?

    One work-around might be first setting the image width in Image > Image Size with »Resample« unchecked, then placing the watermark as an Smart Object.

    For more involved approaches you might want to consider using a Script.

    jintakhan
    jintakhanAuthor
    Participant
    April 23, 2018

    I was planning to have one for landscape and one for portrait, but I'll look into scripting which looks much more flexible and promising. Thanks!

    c.pfaffenbichler
    Community Expert
    Community Expert
    April 23, 2018

    If you have some JavaScript-knowledge it should not be too hard.

    In any case there is a Scripting Forum:

    Photoshop Scripting