Caption-Filename
Caption-Filename is a Photoshop script/action for creating captions like shown on the right. Rather than manually entering these titles, I found it easier to name the files in the same way and let a script create duplicates with the caption based on the filename.
Caption-Filename is free of charge.
Download and installing
To download Caption-Filename, simply click on the download button. This will download a file install-caption-filename.jsx.
To install Caption-Filename, double-click on install-caption-filename.jsx. This should launch Photoshop and ask if you want to install an action for Caption-Filename in the actions panel. (If you don't see the Action palette, you will find it under Window > Actions.)
If double-clicking doesn't work, you can also install this script by doing File > Scripts > Browse... and choosing install-caption-filename.jsx.
Using Caption-Filename
Open a document and run the "Caption filename" action. It should create a caption with the same text as the filename, minus the file suffix of course. A big point of this script is that you can run it in batch on a whole bunch of files that you have named according to their intended titles: using the Image Processor: launch the Image Processor from Bridge (Tools > Photoshop > Image Processor), check "Run action" and specify the "Caption-Filename" action set and the "Caption filename" action. The output files will appear in the "JPEG" subfolder.
Customising Caption-Filename
There are a few parameters at the top of the caption-filename.jsx script that you can change:
- P: defines the height of the caption, as a percentage (0-100) of the document height. The default value is 10.
- T: defines the transparency of the caption's panel: 0 is no panel and 100 is no transparency. The default value is 70.
- bgcolor: defines the background color of the panel. The default value is white: ffffff
- font: defines the font used for the caption. The default is ArialMT
- fontsize: defines the fontsize. The default is 72px.
- color: defines the font color. The default is black: 000000
Vertical centering
You may notice that the caption text is not (always) perfectly vertically centered. The reason for this is twofold:
- It is not possible for the script to obtain the coordinate for the baseline of a text layer.
- Because the caption text may (or may not) have descenders, or umlauts, it is not possible to anticipate the height of the text.
About
Caption-Filename is ©Kjell Post. Feel free to contact me if you are in need of Photoshop scripting.
