To increase the quality of the images you need to add a new JPEGEncodeParam:
Add this before your ParameterBlock() and before the JAI.create().
JPEGEncodeParam encodeParam = new JPEGEncodeParam();
encodeParam.setQuality(quality);
Where quality is a float. I belive 0.0 is crap and 1 is great, can't remember though.
Adam.
-----Original Message-----
From: Stephen Moretti [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 14:28
To: CF-Talk
Subject: JAI Image resize gives rubbish images.
Reading Java classes and methods and trying to work out how they all
work and what I should be using has given me a permanent headache, so I
hope someone out there can help.....
I've used and got working Matt Liota's ImageUtils cfc example/article.
http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/
Only trouble is the thumbnails it generates are of less that great
quality. Does anyone know how I could increase the quality of the
thumbs it creates?? Its something to do with the Interpolation, but I
couldn't work out exactly what or how... :o/
TIA
Stephen
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

