JImageFilter & JavaScript

Image scaler add-on.
Post Reply
import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

JImageFilter & JavaScript

Post by import »

Anyway I can dynimically program the resampling size through Javascript...something like:
document.fileupload.setProperty("filtervalue1","1024");

import
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm

Re: JImageFilter & JavaScript

Post 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 ?

Post Reply