davidelliot.org – v1.0
Posted by Anton at November 13th, 2006
David has just published a new book: an illustrated version of Lewis Carroll’s Hunting of the Snark. Getting the images up is now a relatively simple task, given the batch processing features of Fireworks. I’m sure photoshop does the same, but I know Fireworks backwards and wrote the following code to insert watermarks into the images: always in the bottom right corner.
/* watermark code for fireworks anton.angelo@modernprojects.com 11/11/06 */
var dom =fw.getDocumentDOM(); //create a new object containing the current document object
var watermarkHeight = 27; // height of my watermark
var watermarkWidth = 138; // width of my watermark
// place the watermark relative to the size of the image its going on
var watermarkVert = dom.top + dom.height - watermarkHeight;
var watermarkHoriz = dom.left + dom.width - watermarkWidth;
// import the watermark using the importFile() method into the right place dom.importFile("file:///E|/anton/images/working/David%20Elliot/www_davidelliot_org_med_white_on_black.png", {left:watermarkHoriz, top:watermarkVert, right:watermarkHoriz, bottom:watermarkVert}, false);
Save the above as a .jsf file into your fireworks commands folders, and batch process away!