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

Reply via email to