What happens to Original File

Image scaler add-on.

What happens to Original File

Postby gusD » Fri Apr 03, 2009 1:18 am

Hi I was wondering if I could use this to to create thumbnails for uploading along with the original image. I want both files in other words.. I would also like the system to be able to work with a fixed dimension.. That is if the original image is landscape then make a 160 px wide thumbnail. If the pic is Portrait make a 160px high thumbnail...

I need to automate the process for this site....


http://www.wheresharro.com
gusD
 
Posts: 2
Joined: Fri Apr 03, 2009 1:13 am

Re: What happens to Original File

Postby support » Fri Apr 03, 2009 6:18 am

Yes, you can, see the following tutorial:
http://www.jfileupload.com/products/jim ... nails.html
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: What happens to Original File

Postby gusD » Sat Apr 04, 2009 12:28 am

Thanks for that reply I understand a bit more now...One question remains unanswered that is the ability to detect portrait or landscape input and choose an appropriate scaling based on the aspect ratio.

Thanks again we have been using the upload tool at the Uni where I work and it's such a great solution keep it up !
gusD
 
Posts: 2
Joined: Fri Apr 03, 2009 1:13 am

Re: What happens to Original File

Postby support » Sat Apr 04, 2009 8:41 am

You need to use:
- landscape.maxwidth
- landscape.maxheight
- portrait.maxwidth
- portrait.maxheight
Instead of:
- maxwidth
- maxheight
in your scaling.properties file.

Notice that scaleoption could also help:
If scaleoption=allowmagnify and image dimensions < maxwidth, maxheight then image will be magnified. If scaleoption=fitaspectratio then scaled image dimension will fit exactly to maxwidthxmaxheight so aspect ratio might be modified.

See at:
http://www.jfileupload.com/products/jim ... ation.html
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 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.