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.


SetMaxDisplaySize issues with relativity

 
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
aaronvegh
Newbie


Joined: 13 Dec 2006
Posts: 3

PostPosted: Wed Dec 13, 2006 10:34 pm    Post subject: SetMaxDisplaySize issues with relativity Reply with quote

Hi there,
I'm working on your latest Crop Canvas version (very impressive, btw!), and I finally have cropped images being saved properly, and where I'd like them. However, because the original images are quite large, I'm using your new class method "setMaxDisplaySize". It works peachy, save for when you do the crop... here, I set an ostensive crop size of say 200x200 pixels, but the final cropped image is 600x600!

It appears that the cropping area becomes relative to the size of the original image, not the reduced one. Am I missing some vital function call to make this work properly?

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


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

PostPosted: Thu Dec 14, 2006 11:57 am    Post subject: Reply with quote

Hi Aaron,

Welcome to the board.

As far as I'm concerned, that is the correct behaviour. If your large image (the one you want to do the crop on) is three times large than the one you display in the cropping interface, then if you had a crop size of 200x200 then it would translate up to 600x600 because then the crop on the large image would be the same area as shown in the interface (forget dimensions for a bit, but look at what's actually being cropped).

Or am I missing your point? Smile

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
aaronvegh
Newbie


Joined: 13 Dec 2006
Posts: 3

PostPosted: Thu Dec 14, 2006 1:06 pm    Post subject: Reply with quote

Hi Andy,
Thanks! Glad to be here.

Yes, I think you are getting the point, but perhaps I'm not being clear in my requirements. I think what I'm hoping for is not only a cropping, but a resizing. So if someone opens a 1200x800 image (for example), the cropping tool will quote them a resulting size of 200x200, so in addition to giving you the area of the image in question, it will be resized to the quoted dimensions.

Thanks in advance for your help!

Cheers,
Aaron.
Back to top
View user's profile Send private message
amnuts
Site Admin


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

PostPosted: Fri Dec 15, 2006 6:58 am    Post subject: Reply with quote

Ah, OK, I get you now!

By default the cropping class does just that - it crops. I have another class that is used for image resizing called 'Dropshadow Thumbnail Creator'. Ignore the stupid name of the thing, it's really a powerful image resizer. If you use a combination of the two of them you'll achieve your desired functionality. Just do a search on this board for crop and resize and you should come across a number of examples.

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
aaronvegh
Newbie


Joined: 13 Dec 2006
Posts: 3

PostPosted: Fri Dec 15, 2006 8:57 am    Post subject: Reply with quote

Thanks Andy! I'll look into this and figure 'er out.

You rock.

Aaron.
Back to top
View user's profile Send private message
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