Thanks for the info, Tom. My JAI solution looks quite similar except that I added a "sharpen" step to the process. As I said: JAI seems the way to go, but I'm sometimes getting strange results depending on the image size (i.e. if the original is 500px wide it might work fine, if it's 501px wide I get a black border on one side...).

Anyway, I'll have an other look at it and will compare it closely to your code. So thanks for the help.

-will

On 10.03.2009, at 16:24, Thomas Duffey wrote:



On Mar 10, 2009, at 4:21 AM, Will Scheidegger wrote:

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

FYI there was a thread about this on the dev list a while back:

http://www.nabble.com/Image-(asset-document)-management-with-Magnolia-td20799367.html#a20811050

I have since written something using JAI and it seems OK but I'm using it in a case where quality is not real important. Here's what I came up with:

http://paste.org/5840

Tom


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