After some test with jmagick, I found the solution difficult to rely on :
- difficult to compile (but succeed at the end)
- unstable (some jvm crash)
- outputting some unwanted report on stdout (could not stop the verbose 
- strange API (which is not the main point)

I finally go back to 100% pure java with awt, but with headless=true 
which sould solve my problem.


On 07/02/13 11:25, Mattias Jiderhamn wrote:
> We use JAI in one of our web apps. Have you set system properties
> java.awt.headless=true and java.awt.headlesslib=true ...?
> (Btw, for full performance, you should install JNI binaries. Thought
> that wouldn't be 100% Java either. And I haven't tried it.)
>    </Mattias>
> ----- Original Message -----
> Subject: [Resin-interest] help on resizing image
> Date: Thu, 07 Feb 2013 11:14:00 +0100
> From: Riccardo Cohen <r.co...@realty-property.com>
> Hello
> On my web application, I need to resize images sent via multipart forms.
> When I try a console application using awt on my mac (see attached
> code), the console application starts a real Mac application with window
> and menu, while my code is only calling non-gui functions
> (ImageIO.read...) .
> I'm really affraid to add this code on my server, and I wonder if this
> may have impact on memory, performance and stability of the server. I
> would rather prefer a little imaging library like jmagick or gd for
> java, small and efficient. It's not 100% java but it does not create
> windows and menus...
> What do you use to resize images on the server size ?
> Thanks a lot.

Riccardo Cohen
+33 (0)6 09 83 64 49
Société Realty-Property.com
1 rue de la Monnaie
37000 Tours


resin-interest mailing list

Reply via email to