ImageCropper and DynaImage

UI Components for JSF
Post Reply
daniel.camargo
Posts: 24
Joined: 22 Oct 2010, 20:00

13 Jun 2011, 18:02

Hi,

Is it possible to use a StreamedContent as parameter of the image attribute in an imageCropper tag?

Ex:

Code: Select all

public class Bean{
	private StreamedContent image;
	private CroppedImage croppedImage;
	// getters and setters ....
}

Code: Select all

<p:imageCropper
	value="#{bean.croppedImage}"
	image="#{bean.image}" initialCoords="225,75,300,125" />
----
JSF 2 + Primefaces 3.0.M2-SNAPSHOT

Salda
Posts: 24
Joined: 12 Feb 2013, 13:23

14 Feb 2013, 14:01

I am trying to achieve the same. Or how to convert byte[] or streamedcontent to something which will look like image file (image.jpg)?

fritteli
Posts: 4
Joined: 11 Mar 2013, 17:16
Contact:

11 Mar 2013, 17:25

Unfortunately it seems the ImageCropper only supports static images at the moment:
viewtopic.php?f=3&t=3418
However, there are already 2 feature requests pending:
http://code.google.com/p/primefaces/iss ... il?id=1603
http://code.google.com/p/primefaces/iss ... il?id=3751

So please go there and vote for these issues!
JSF 2.2, Mojarra 2.2.4, Primefaces 4.0, IBM Websphere Application Server 8.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests