Page 1 of 1

JImageFilter & JavaScript

Posted: Sun Jan 27, 2008 9:56 pm
by import
Anyway I can dynimically program the resampling size through Javascript...something like:
document.fileupload.setProperty("filtervalue1","1024");

Re: JImageFilter & JavaScript

Posted: Sun Jan 27, 2008 9:57 pm
by import
Is it a question ? Try the following:

Add the following line in imagefilter.properties:
enable=true

To update both maxwidth and maxheight from the imagefilter.properties then add in your JavaScript:
<PARAM NAME="filterparam1" VALUE="maxwidth">
<PARAM NAME="filtervalue1" VALUE="640">
<PARAM NAME="filterparam2" VALUE="maxheight">
<PARAM NAME="filtervalue2" VALUE="320">

Finally, in your JavaScript code:
document.fileupload.setProperty("filtervalue1","800");
document.fileupload.setProperty("filtervalue2","600");

Does it help ?