ImageCropper from DB or object

UI Components for JSF
Post Reply
pusia
Posts: 2
Joined: 21 Jul 2010, 12:50

21 Jul 2010, 12:57

Hello
I have problem with ImageCropper.
How to read image to cropp from object?
Like that:
<p:imageCropper value="#{imageCropperBean.croppedImage}" image="#{imageCropperBean.imageToCropp}" />
not that:
<p:imageCropper value="#{imageCropperBean.croppedImage}" image="/ui/barca/campnou.jpg" />
Thanks!

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

21 Jul 2010, 14:00

ImageCropper does not support dynamic images yet.

pusia
Posts: 2
Joined: 21 Jul 2010, 12:50

21 Jul 2010, 14:06

Thanks for reply! :)

But in future it will be support?
Have you any idea how to bypass my problem?

Thanks!

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

21 Jul 2010, 15:25

Feel free to create a feature request for this in our issue tracker so we can prioritize it depending on how many votes it gets.

Currently I can't think of a workaround, unless you save your dynamic image at a temporary location and use imagecropper on that temporary physical image.

carlosLainez
Posts: 30
Joined: 19 Nov 2010, 19:25

07 Jan 2011, 21:20

I vote for that feature, I'm very interested that ImageCropper supports dynamic images!Is the issue created?
eclipse mars,
apache-tomcat-8.0.29
myfaces 2.2.9,
primefaces-5.3,
mysql-connector-java-5.1.30-bin,
hibernate 4.3.11.Final

carlosLainez
Posts: 30
Joined: 19 Nov 2010, 19:25

07 Jan 2011, 23:20

I have searched and have not found the request created on issue tracker, I´ll create one!

Please friends, vote!

http://code.google.com/p/primefaces/iss ... %20Summary
eclipse mars,
apache-tomcat-8.0.29
myfaces 2.2.9,
primefaces-5.3,
mysql-connector-java-5.1.30-bin,
hibernate 4.3.11.Final

isthmus86
Posts: 1
Joined: 08 Nov 2013, 09:25

08 Feb 2014, 14:03

I added StreamedContent support for ImageCropper like this (requires compiling PrimeFaces from source)

modify imageCropper.xml (under src/main/resource-maven-jsf/ui/imageCropper.xml) as such:
http://pastebin.com/eu5APFxu

modify ImageCropperRenderer.java (under src/main/java/org/primefaces/component/imagecropper):
http://pastebin.com/BYddVAN1

i modified 4.0.7-SNAPSHOT from https://github.com/primefaces/primefaces/tree/4.0.x :lol:

kahlon1005
Posts: 41
Joined: 19 Jun 2013, 00:54

24 May 2015, 21:32

isthmus86 wrote:I added StreamedContent support for ImageCropper like this (requires compiling PrimeFaces from source)

modify imageCropper.xml (under src/main/resource-maven-jsf/ui/imageCropper.xml) as such:
http://pastebin.com/eu5APFxu

modify ImageCropperRenderer.java (under src/main/java/org/primefaces/component/imagecropper):
http://pastebin.com/BYddVAN1

i modified 4.0.7-SNAPSHOT from https://github.com/primefaces/primefaces/tree/4.0.x :lol:


I have got 5.2 version of PF and I don't see the ImageCropper component support StreamedContent. Is this functionality over written in 5.2.
PrimeFaces 5.3 | Spark 2.1 | Wildfly 10.0 | Mojarra 2.2.0 | Eclipse | Prime Faces Extension 3.2.0 | Omnifaces 2.0 | Java 1.8


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests