You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mark <ma...@xeric.net> on 2011/07/04 02:09:05 UTC

Cropper Module

Is there a Tapestry Module (or some example code) floating around
anywhere that allows cropping photos?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Cropper Module

Posted by Kalle Korhonen <ka...@gmail.com>.
Yeah I thought so but your question was so open ended that I figured
better not to assume anything. I'm not aware of out-of-box Tapestry ui
component, but this particular library is prototype/scriptaculous and
BSD-licensed, so should be very close to a drop-in addition to your
app. The only thing you'd need to handle is sending the crop
coordinates.

Kalle


On Sun, Jul 3, 2011 at 7:04 PM, Mark <ma...@xeric.net> wrote:
> Thanks for your reply.  Sorry I wasn't more specific.  I meant to
> handle the user interaction for selecting the portion of an image to
> crop.  So a module that makes it easy to integrate something like
> this:
> http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/
>
> Mark
>
> On Sun, Jul 3, 2011 at 8:28 PM, Kalle Korhonen
> <ka...@gmail.com> wrote:
>> You don't need a Tapestry module to crop images:
>> BufferedImage cropped = bufferedImage.getSubimage(left, top, width, height);
>>
>> Kalle
>>
>>
>> On Sun, Jul 3, 2011 at 5:09 PM, Mark <ma...@xeric.net> wrote:
>>> Is there a Tapestry Module (or some example code) floating around
>>> anywhere that allows cropping photos?
>>>
>>> Mark
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Cropper Module

Posted by Mark <ma...@xeric.net>.
Thanks for your reply.  Sorry I wasn't more specific.  I meant to
handle the user interaction for selecting the portion of an image to
crop.  So a module that makes it easy to integrate something like
this:
http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/

Mark

On Sun, Jul 3, 2011 at 8:28 PM, Kalle Korhonen
<ka...@gmail.com> wrote:
> You don't need a Tapestry module to crop images:
> BufferedImage cropped = bufferedImage.getSubimage(left, top, width, height);
>
> Kalle
>
>
> On Sun, Jul 3, 2011 at 5:09 PM, Mark <ma...@xeric.net> wrote:
>> Is there a Tapestry Module (or some example code) floating around
>> anywhere that allows cropping photos?
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Cropper Module

Posted by Kalle Korhonen <ka...@gmail.com>.
You don't need a Tapestry module to crop images:
BufferedImage cropped = bufferedImage.getSubimage(left, top, width, height);

Kalle


On Sun, Jul 3, 2011 at 5:09 PM, Mark <ma...@xeric.net> wrote:
> Is there a Tapestry Module (or some example code) floating around
> anywhere that allows cropping photos?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org