scaling tifffs

Image scaler add-on.
dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

scaling tifffs

Post 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

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Post 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!!)

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tiffs

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

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

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

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Post by dstonek »

applet_http.php
It only contents the js... Is this enough or do you need the html with /lib links?
Last edited by dstonek on Tue Mar 25, 2008 12:40 am, edited 1 time in total.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

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

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

Post 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

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Post 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

Post Reply