/**
 * This script is run everytime an album is generated.
 * It basically installs filters set in the user interface
 */
 

if (zoomThumbs) {
	ZoomFilter f = new ZoomFilter();
	f.setZoomPercent(zoomPercent);
	engine.addFilter(f, 4);
}

if (fixedShape) engine.addFilter(new FixedShapeFilter(), 4);

if (grayscale) engine.addFilter(new GrayscaleFilter(), 5);

if (watermark.length() > 0) {
	WatermarkFilter f = new WatermarkFilter();
	f.setText(watermark);
	f.setSize(watermarkSize);
	f.setAlign("center");
	f.setValign("bottom");
	engine.addFilter(f, 3);
}

// Figure out if we can integrate with on-line printing service
engine.processBeanShellFile(new File(programDirectory, "includes/printing.bsh"));
showPrintingWarnings();
