public static String call(PageContext pc, Object name,String width, String height,String interpolation, double blurFactor) throws PageException {
// image
if(name instanceof String)
name=pc.getVariable(Caster.toString(name));
Image image=Image.toImage(name);
interpolation = interpolation.toLowerCase().trim();
if (blurFactor <= 0.0 || blurFactor > 10.0)
throw new FunctionException(pc,"ImageResize",5,"blurFactor","argument blurFactor must be between 0 and 10");
// MUST interpolation/blur
//if(!"highestquality".equals(interpolation) || blurFactor!=1.0)throw new ExpressionException("argument interpolation and blurFactor are not supported for function ImageResize");
image.resize(width,height,interpolation,blurFactor);
return null;
}