scaling tifffs

Image scaler add-on.

scaling tifffs

Postby dstonek » Fri Mar 21, 2008 3:34 pm

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.5 KiB) Downloaded 283 times


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

Re: scaling tifffs

Postby dstonek » Fri Mar 21, 2008 3:58 pm

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!!)
dstonek
 
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tiffs

Postby support » Fri Mar 21, 2008 6:03 pm

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.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

Postby dstonek » Fri Mar 21, 2008 8:38 pm

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
dstonek
 
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Postby support » Sat Mar 22, 2008 8:34 am

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 ?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

Postby dstonek » Mon Mar 24, 2008 3:34 pm

[url]applet_http.php[/url]
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.
dstonek
 
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Postby support » Mon Mar 24, 2008 10:36 pm

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.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

Postby dstonek » Tue Mar 25, 2008 8:21 pm

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.
dstonek
 
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: scaling tifffs

Postby support » Thu Mar 27, 2008 1:15 pm

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
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: scaling tifffs

Postby dstonek » Thu Mar 27, 2008 4:35 pm

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
dstonek
 
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Next

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.