What happens to Original File

Image scaler add-on.
Post Reply
gusD
Posts: 2
Joined: Fri Apr 03, 2009 1:13 am

What happens to Original File

Post 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

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

Re: What happens to Original File

Post by support »

Yes, you can, see the following tutorial:
http://www.jfileupload.com/products/jim ... nails.html

gusD
Posts: 2
Joined: Fri Apr 03, 2009 1:13 am

Re: What happens to Original File

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

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

Re: What happens to Original File

Post 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

Post Reply