Well, JAI seems to be the solution, but as I said: I have yet to find an example based on JAI which produces high quality results with a wide range of image sizes without any funky side effects...

-will

On 10.03.2009, at 11:46, Peter Götz wrote:


Thanks for the article URL. Maybe there is hope and a way to get image manipulation without having to use ImageMagick. I know the pains you know, Will, and I would be glad to get them solved. :)

Peter
__________________________
Accelsis Technologies GmbH
Innovative IT-Lösungen

Aidenbachstr. 52, D-81379 München
phone: +49 89 548038-0 (-76 direct), fax: +49 89 548038-99
[email protected], http://www.accelsis.biz

Hauptsitz der Accelsis Technologies GmbH: Aidenbachstr. 52, D-81379 München
Geschäftsführer: Andreas Penzel, Klaus Schlumpberger
Amtsgericht München, HRB 138056


----- Original Message -----
From: Will Scheidegger
[mailto:[email protected]]
To: Magnolia User-List
[mailto:[email protected]]
Sent: Tue, 10 Mar 2009 11:18:30
+0100
Subject: Re: [magnolia-user] OT: Image scaling algorithm



Thanks Peter and Tobias for the quick replies.

We've used ImageMagick before with good results - it's just really
hard for me to believe, that I need to talk to a C program over JNI
only to get a decent scaled image. And since this makes the
installation of webapps on servers a pain it's no real option for us.

We've also used "getScaledInstance()" in Java. But apparently one
should not go that way.
http://weblogs.java.net/blog/chet/archive/2007/04/ dont_use_getsca.html

The more you google the more opinions you get on that topic ;-)

-will

On 10.03.2009, at 10:48, Tobias Reinhardt wrote:


Hi Will

The following article explains the different pitfalls for image
scaling with java quite well. And it includes some code how to do it
right. I don't know if it is the best solution, but it is enough for
me.

http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

If you use the multistep scaling flag of the provided helper method,
ensure that your server has enough memory.

Tobias


2009/3/10 Will Scheidegger <[email protected]>:
Dear Magnolians
This is quite off-topic, but I'm sure many of you have been faced
by the
same problem: Image scaling in Java.
I tried many different methods, googled for hours if not days, but
either
I'm getting low quality results or the thumbs have other "side
effects" like
a black border on one or two sides...
Does anyone have the definite solution to a problem which really
should not
be rocket science? I hate it when things are oh so easy in Typo3 :-/
Thanks!
-will

--

fastforward websolutions

Kramgasse 16, CH-3011 Bern

Tel. +41 31 348 54 44, Fax +41 31 348 54 55

www.fastforward.ch

--


________________________________
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to