Page 1 of 2

scaling tifffs

Posted: Fri Mar 21, 2008 3:34 pm
by dstonek
Win IE 6 J1.6
Tiff images are not being scalled. They are uploaded in their original size

Scaling props:
maxwidth=500
maxheight=500
scaleoption=fitaspectratio
quality=0.5
renamepolicy=rename
extensions=jpg,jpeg,jpe,png,bmp,tif,tiff,pnm,raw
forcergb=true
impl=ImageIO
outformat=jpg
enable=true
tif1.jpg
(13.46 KiB) Downloaded 283 times
Thank you

Re: scaling tifffs

Posted: Fri Mar 21, 2008 3:58 pm
by dstonek
I've added a whitelist...
document.write('whitelist = "*.jpg, *.JPG, *.jpe, *.JPE, *.jpeg, *.JPEG, *.bmp, *.BMP, *.tif, *.TIFF, *.tiff, *.TIFF, *.pnm, *.PNM, *.raw, *.RAW" ');
Browsing this file with the applet, it is not listed now.

It is a scanned image using Office XP plugin. It seems it only opens in the Microsoft® world (the ONLY one!!)
Photoshop on Mac says "Could not complete the request because the TIFF files uses an unsopported compression method). Linux image viewers cannot open them either. (They are from another planet, maybe Saturn...! On Earth you have to live in Microsoft® realm!!)

Re: scaling tiffs

Posted: Fri Mar 21, 2008 6:03 pm
by support
Are you using ImageIO library with JImageFilter ? It is required for TIFF support.
You have a sample: applet_ftp_scaling_iotools.html in JImageFilter package.

Re: scaling tifffs

Posted: Fri Mar 21, 2008 8:38 pm
by dstonek
Only jpgs are listed in applet file browsing.
These are involved settings.

Code: Select all

document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/ifilter.jar,lib/jai_imageio.jar">');
document.writeln('<PARAM NAME="whitelist" VALUE="*.jpg, *.JPG, *.jpe, *.JPE, *.jpeg, *.JPEG, *.bmp, *.BMP, *.tif, *.TIFF, *.tiff, *.TIFF, *.pnm, *.PNM, *.raw, *.RAW">');
// scaling
document.writeln('<PARAM NAME="filter" VALUE="jfileupload.upload.client.filter.ImageFilter">');
document.writeln('<PARAM NAME="filterproperties" VALUE="scaling.properties">');
Thanks

Re: scaling tifffs

Posted: Sat Mar 22, 2008 8:34 am
by support
And you have the following in scaling.properties:
extensions=jpg,jpeg,jpe,png,bmp,tif,tiff,pnm,raw

Do you have an URL I could check from here with the applet ?

Re: scaling tifffs

Posted: Mon Mar 24, 2008 3:34 pm
by dstonek
applet_http.php
It only contents the js... Is this enough or do you need the html with /lib links?

Re: scaling tifffs

Posted: Mon Mar 24, 2008 10:36 pm
by support
Could you remove extra space (after each coma) in whitelist:
<PARAM NAME="whitelist" VALUE="*.jpg, *.JPG, *.jpe, *.JPE, *.jpeg, *.JPEG, *.bmp, *.BMP, *.tif, *.TIFF, *.tiff, *.TIFF, *.pnm, *.PNM, *.raw, *.RAW">
becomes:
<PARAM NAME="whitelist" VALUE="*.jpg,*.JPG,*.jpe,*.JPE,*.jpeg,*.JPEG,*.bmp,*.BMP,*.tif,*.TIFF,*.tiff,*.TIFF,*.pnm,*.PNM,*.raw,*.RAW">

Close all browser windows and try again.

Re: scaling tifffs

Posted: Tue Mar 25, 2008 8:21 pm
by dstonek
I was able to resize-upload 8MB files in TIFF AND BMP but the upload started without resampling on 8MB Photoshop RAW created image and 56MB Tiff one.

Re: scaling tifffs

Posted: Thu Mar 27, 2008 1:15 pm
by support
8MB ... what were the dimension of image ? More than 3000x3000 ? You may had on a memory issue.
Do you have any error ?

See troubleshooting:
http://www.jfileupload.com/products/jfi ... oting.html

See memory workaround at:
http://www.jfileupload.com/products/jim ... aq.html#18

Re: scaling tifffs

Posted: Thu Mar 27, 2008 4:35 pm
by dstonek
2000x1346 the tiff file w/o compression, same as bmp I could upload
I didn't get any error msg. RAM = 2Gb, 1Gb in use and 1Gb cached