Long time ago I promised several people I'd polish up my Photoshop actions and post them. I finally got around to it and now they are a bit more robust and don't give warnings anymore with normal use.
Unpack the zip, put the scripts and actions in "C:\Program Files\Silverjuke\Photoshop" and load the actions into PS. Some instructions for use:
Selection -> XML
Needs a selected area. It generates a one-line XML file with the <img> tag, but more importantly with the correct x/y/w/h coordinates/sizes for the active selection.
Selection -> Image
Needs a selected area. It generates a new image with an SJ border (0/255/0 green).
Selection -> PNG Image
Same, but saves the image straight to PNG
Selection -> ClipBoard Image
Same, but only stores the image in the clipboard.
Image -> Button
Needs an image created by "Selection -> Image". It then converts it to an SJ button (three identical images vertical with SJ borders surrounding them).
Save PNG
Trivial action but I use it a lot: save the active image as PNG.
Note:
- All selections can have irregular shapes.
- If an action requiring a selection doesn't get one, it will break and _will_ have made changes to your original. Not nice, but these are ugly freebies I made for my own use. Just undo the changes...
- When a selection has transparant pixels all around, the selection will not paste correcty into the SJ image, it will center. This means the XML code is not usable. I don't know any 100% fix for this yet.
- PS is finicky, if you change the location of the files you have to modify the actions.
ADDED 4-2-09:
I created these actions for CS3, using the CS2 manual so I expect CS2 is OK. It seems they don't work for CS.
ADDED 19-2-09:
For German versions of PS it seems you cannot use actions created from the international version unchanged. Some layer names have to be changed ("Border copy" becomes "Border Kopie"). Secondly the action "verkleinern" is not available when the whole picture is selected (Crtl-A). This seems to be "normal" in the German version (there are a lot of comments on the net about this fact/bug/feature). You can replace the actionstep "decrease selection by 1 pixel" with "Auswahl - Rand - 1 pixel" and inverting the selection. (Thanks to frenchi for all this info).
Have fun,
SilverEagle
PS (=PostScriptum, not PhotoShop
