<p:imageCropper> crop area size

UI Components for JSF
Post Reply
carlinhoswake
Posts: 2
Joined: 02 Feb 2010, 21:25

02 Feb 2010, 23:15

Hello,

Is it possible to define the intial values for width and height of <p:imageCropper>?

Would it be possible to define some atributtes related to crop area:
- width
- height
- left
- right
- maximumWidth
- maximumHeight
- minimumWidth
- minimumHeight
- resizable (true or false)

What do you think?

Thanks!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Feb 2010, 14:51

imageCropper is built on top of YUI imagecropper.

See Configuring an ImageCropper section in YUI documentation

http://developer.yahoo.com/yui/imagecropper/

PrimeFaces imageCropper doesn't support these options yet, although I think it's possible to hook them in with client side api.

If you create a ticket in our issue tracket with the list of options you'd like to see in p:imageCropper, we can add them for a future release.

carlinhoswake
Posts: 2
Joined: 02 Feb 2010, 21:25

04 Feb 2010, 18:22

OK,

I will create a ticket requesting the inclusion of these attributes.

Thanks!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Feb 2010, 18:36

Great, thanks!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests