|
Hi there,
i need to create some thumbnails when a users submits an image file. I looked around and have seen the ImageTools plugin, but was wondering what people actually use to accomplish tasks like image manipulation? Any suggestions? Marco --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
I have tried many java libraries. My advice is don't do image manipulation in java! I would suggest using command line tools and calling them from your app. If you must, the imagemagick jni wrapper was the best. Native is too slow, buggy, and ill supported. Rob |
|
In reply to this post by marcopas
Hi rob, thanks for your suggestion. Could you provide me more information on what tools to use and how to approach the solution? On Sep 11, 2011 8:01 PM, "Rob Elsner" <[hidden email]> wrote:
|
|
In reply to this post by robelsner
I completely agree! Doing image manipulation in Java is slow and the quality sucks. I could live with it being slow, but the poor quality makes it impossible to live with.
I've very good experience with starting a image magic process with the correct arguments, but that's not very cloud friendly. Does anyone have any experience with "web 2.0" rest service for image scaling?
- Kim A. Betti
Have a nice day! |
|
I haven't really had the problems that the others have talked about. I've used ImageIO (which is backed by native libraries) and it was fast enough for my purposes -- mainly taking JPEG encoded telemetry from aircraft and processing them into a video stream -- sort of the modern day equivalent of a flipbook. I would think that it's more than capable of dealing with thumbnailing.
Regards, Mark
On Sun, Sep 11, 2011 at 11:50 AM, Kimble <[hidden email]> wrote: I completely agree! Doing image manipulation in Java is slow and the quality |
|
I've had great success with the Image Burning plugin. http://www.grails.org/plugin/burning-image
I have not experienced any of the issues the others have referenced regarding image quality.
- Dean Del Ponte
On Sun, Sep 11, 2011 at 2:08 PM, Mark Fortner <[hidden email]> wrote: I haven't really had the problems that the others have talked about. I've used ImageIO (which is backed by native libraries) and it was fast enough for my purposes -- mainly taking JPEG encoded telemetry from aircraft and processing them into a video stream -- sort of the modern day equivalent of a flipbook. I would think that it's more than capable of dealing with thumbnailing. |
|
In reply to this post by Mark Fortner-3
Can I ask you what platform and JVM you're using? Perhaps my image quality problems was due to either Linux or OpenJDK.
- Kim A. Betti
Have a nice day! |
|
Ive also used imagemagick. Its easy to use. Java libs are probably too cumbersome for creating thumbs etc. On Sep 11, 2011 12:20 PM, "Kimble" <[hidden email]> wrote:
> Can I ask you what platform and JVM you're using? Perhaps my image quality > problems was due to either Linux or OpenJDK. > > ----- > - Kim A. Betti > Have a nice day! > -- > View this message in context: http://grails.1312388.n4.nabble.com/What-to-use-for-image-manipulation-within-Grails-tp3805556p3805686.html > Sent from the Grails - user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > |
|
I used Ubuntu 10.04 and Java 6.
Both the burning image plugin and image tools plugin use JAI which allows you to either increase or decrease the quality of the rendered thumbnail.
- Dean Del Ponte
On Sun, Sep 11, 2011 at 2:35 PM, Arash Sharif <[hidden email]> wrote:
|
|
ImageMagick rocks. It is very easy to use. I have used it with ghostscript in two of my projects that use image manipulation (dynamic banner generation etc.) Cheers Neeraj On Mon, Sep 12, 2011 at 5:50 PM, Dean Del Ponte <[hidden email]> wrote: I used Ubuntu 10.04 and Java 6. |
|
I have used ImageTools Plugin and it has worked well in my case. Give it a shot.
Regards Gaurav Chauhan On Mon, Sep 12, 2011 at 5:54 PM, Neeraj Wasan <[hidden email]> wrote:
|
|
In reply to this post by Dean Del Ponte-2
On Mon, Sep 12, 2011 at 6:20 AM, Dean Del Ponte <[hidden email]> wrote:
> I used Ubuntu 10.04 and Java 6. > Both the burning image plugin and image tools plugin use JAI which allows > you to either increase or decrease the quality of the rendered thumbnail. > - Dean Del Ponte JAI was very finicky for me when switching between Linux and Windows hosts, so your mileage may vary on plugins which use JAI if that is a requirement. The pure Java performance was lacking for what I needed to do. That's why I recommended ImageMagick and related tools. Rob --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Just out of curiosity, did you try the native JAI or imageio libraries before switching to ImageMagick?
Mark On Monday, September 12, 2011, Rob Elsner <[hidden email]> wrote: > On Mon, Sep 12, 2011 at 6:20 AM, Dean Del Ponte <[hidden email]> wrote: >> I used Ubuntu 10.04 and Java 6. >> Both the burning image plugin and image tools plugin use JAI which allows >> you to either increase or decrease the quality of the rendered thumbnail. >> - Dean Del Ponte > > JAI was very finicky for me when switching between Linux and Windows > hosts, so your mileage may vary on plugins which use JAI if that is a > requirement. The pure Java performance was lacking for what I needed > to do. That's why I recommended ImageMagick and related tools. > > Rob > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Cheers,
card.ly: |
|
I experimented with all of the approaches mentioned above and from a Quality perspective nothing delivered as well as ImageMagick. I looked into the JNI options and JMagick as well as the java media API's.
In the end I used Apache commons exec to interact with ImageMagick and this approach worked well. On Mon, Sep 12, 2011 at 10:33 AM, Mark Fortner <[hidden email]> wrote: Just out of curiosity, did you try the native JAI or imageio libraries before switching to ImageMagick? |
|
In reply to this post by Dean Del Ponte-2
> I used Ubuntu 10.04 and Java 6.
> Both the burning image plugin and image tools plugin use JAI which allows > you to either increase or decrease the quality of the rendered thumbnail. The documentation for Burning Image plugin says that it can be configured to use ImageMagick, although I haven't tested this yet. For my money, this is the best plugin if you want to do image upload as well as image manipulation since it does all the hard work for you. Definitely worth a look for pure image manipulation too. Peter -- Peter Ledbrook Grails Advocate SpringSource - A Division of VMware --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
