Quantcast

What to use for image manipulation within Grails?

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

What to use for image manipulation within Grails?

marcopas
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

robelsner

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

marcopas
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:
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Kimble
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!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Mark Fortner-3
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
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!
--
View this message in context: http://grails.1312388.n4.nabble.com/What-to-use-for-image-manipulation-within-Grails-tp3805556p3805646.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



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Dean Del Ponte-2
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.

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
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!
--
View this message in context: http://grails.1312388.n4.nabble.com/What-to-use-for-image-manipulation-within-Grails-tp3805556p3805646.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




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Kimble
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!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Arash Sharif

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
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

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.

- Dean Del Ponte

On Sun, Sep 11, 2011 at 2:35 PM, Arash Sharif <[hidden email]> wrote:

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
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Neeraj Wasan

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.

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:

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
>
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

gauravchauhan
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:

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.

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:

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
>
>



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

robelsner
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

What to use for image manipulation within Grails?

Mark Fortner-3
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,

Mark

card.ly: 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

Daniel Honig
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?

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,

Mark

card.ly: 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What to use for image manipulation within Grails?

pledbrook
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


Loading...