Page 1 of 1

What happens to Original File

Posted: Fri Apr 03, 2009 1:18 am
by gusD
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

Re: What happens to Original File

Posted: Fri Apr 03, 2009 6:18 am
by support
Yes, you can, see the following tutorial:
http://www.jfileupload.com/products/jim ... nails.html

Re: What happens to Original File

Posted: Sat Apr 04, 2009 12:28 am
by gusD
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 !

Re: What happens to Original File

Posted: Sat Apr 04, 2009 8:41 am
by support
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