JImageFilter & JavaScript

Image scaler add-on.

JImageFilter & JavaScript

Postby import » Sun Jan 27, 2008 9:56 pm

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

Postby import » Sun Jan 27, 2008 9:57 pm

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 ?
import
 
Posts: 169
Joined: Sun Jan 27, 2008 8:10 pm


Return to JImageFilter



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.