andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


Resize to exact dimensions.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas
View previous topic :: View next topic  
Author Message
JonathanReinink
Newbie


Joined: 27 Sep 2005
Posts: 8

PostPosted: Tue Sep 27, 2005 10:36 am    Post subject: Resize to exact dimensions. Reply with quote

Hello all - I came across this site today and it looks like you have some very good scripts!

I have been struggling with something and mabye you guys can tell me how I go about doing it using your scripts.

Basically, I want a client to be able to upload a photo, and it will automatically resize it to a reduced proportional size, at which time it will display on the screen and they can use the java interface to choose where it will crop at. The dimensions I'm after are: 532px X 303px.

So to better explain, when it automatically resizes it will never be smaller than 532x303, but I want it to be a close to this as possible so that they don't loose too much of the image when they crop to the predefined size of 532x303.

I hope this makes sense. Any help would be great!
Back to top
View user's profile Send private message
JonathanReinink
Newbie


Joined: 27 Sep 2005
Posts: 8

PostPosted: Tue Sep 27, 2005 11:13 am    Post subject: Reply with quote

I would also like to add that the class imgRedim almost makes this possible, however, still has one problem:

An image of the dimensions of 2272X1704 resized using imgRedim with the paramaters set to:

$rd->redimToSize(532, 303, true);

Leaves me with a file that is 404px X 303px.

Any suggestions how I can modify this script to work for me?
Back to top
View user's profile Send private message
JonathanReinink
Newbie


Joined: 27 Sep 2005
Posts: 8

PostPosted: Tue Sep 27, 2005 11:49 am    Post subject: Reply with quote

Ignore me - I got it!

Thanks anyway. Smile
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Wed Sep 28, 2005 11:17 am    Post subject: Reply with quote

Ahh.. You're too quick for me! Welcome to the board, anyway! Wink

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group