View previous topic :: View next topic |
Author |
Message |
aaronvegh Newbie
Joined: 13 Dec 2006 Posts: 3
|
Posted: Wed Dec 13, 2006 10:34 pm Post subject: SetMaxDisplaySize issues with relativity |
|
|
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 |
|
 |
amnuts Site Admin

Joined: 01 Sep 2002 Posts: 662 Location: East Sussex, England
|
Posted: Thu Dec 14, 2006 11:57 am Post subject: |
|
|
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?
Andy |
|
Back to top |
|
 |
aaronvegh Newbie
Joined: 13 Dec 2006 Posts: 3
|
Posted: Thu Dec 14, 2006 1:06 pm Post subject: |
|
|
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 |
|
 |
amnuts Site Admin

Joined: 01 Sep 2002 Posts: 662 Location: East Sussex, England
|
Posted: Fri Dec 15, 2006 6:58 am Post subject: |
|
|
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 |
|
 |
aaronvegh Newbie
Joined: 13 Dec 2006 Posts: 3
|
Posted: Fri Dec 15, 2006 8:57 am Post subject: |
|
|
Thanks Andy! I'll look into this and figure 'er out.
You rock.
Aaron. |
|
Back to top |
|
 |
|
|
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
|