Border with Signature


small pig

New Member
May 17, 2011
918
0
0
Punggol
Any idea what is the best way to add borders and signature (jpeg format) to a photo fast?
I tried to use action in CS5, the borders can be done, but not the signature because the placement of the signature will run around for every different pic due to the pic size.
 

I have a workaround for this; when recording actions with the text layer on top, go Layer> Align Layer to Selection > Bottom edges. Then Layer> Align Layer to Selection > Right Edges. After this, nudge the signature as you see fit (the nudging seems to work for different pic sizes for me). This is assuming signature at bottom right corner
 

how to insert the jpeg signature to the layer and save it as action?
 

For borders, try pixlr.com, its free and they are quite creative.

Signature you create separately as a pic, then copy and paste onto your pic as another layer. You can move it anyway you like. To resize, just "transform".
 

Any idea what is the best way to add borders and signature (jpeg format) to a photo fast?
I tried to use action in CS5, the borders can be done, but not the signature because the placement of the signature will run around for every different pic due to the pic size.

Fastest way ? PS Scripting, choose your favorite scripting: VBS, JS, APPLESCRIPT.
Paste the below into a file "addlogo.jsx"

Use your photoshop and load it on your active image. Just a sample for you :)
Learn how to script, you can do a lot more than just drawing text.
You can essentially load your logo image, and position it based on your active document dimension.


// Border Related
var borderWidth = 40;
var borderColor = new SolidColor;
borderColor.rgb.red = 0;
borderColor.rgb.green= 0;
borderColor.rgb.blue = 0;


// save old background color
var oldBGColor = app.backgroundColor;
// save old typeUnits
var oldTypeUnits = app.preferences.typeUnits;


app.preferences.typeUnits = TypeUnits.PIXELS;


// check at least one document is available
if (app.documents.length > 0) {
// get active document
var doc = app.activeDocument;


// extend the size of the canvas
app.backgroundColor = borderColor;
doc.resizeCanvas(doc.width + 2 * borderWidth,
doc.height + 2 * borderWidth,
AnchorPosition.MIDDLECENTER);


// add a new text layer
var logotext = "This is my logo";
var logotextSize = 20;
var logoLayer = doc.artLayers.add();
var logotextColor = new SolidColor;
logotextColor.rgb.red = 255;
logotextColor.rgb.green= 255;
logotextColor.rgb.blue = 255;


logoLayer.name = "Logo";
logoLayer.kind = LayerKind.TEXT;
logoLayer.textItem.contents = logotext;
logoLayer.textItem.color = logotextColor;
logoLayer.textItem.size = logotextSize;
logoLayer.textItem.kind = TextType.PARAGRAPHTEXT;


logoLayer.textItem.position = Array(
doc.width - logoLayer.textItem.width,
doc.height - borderWidth + (-1 * (borderWidth - logoLayer.textItem.height) / 2));
}
else {
alert("Open a document to work on.");
}


// reset background color
app.backgroundColor = oldBGColor;
// reset typeUnits
app.preferences.typeUnits = oldTypeUnits;
 

Last edited: