That is obviously only true if the output format is JPEG.

BTW, since it seems people are using this code and there clearly needs  
to be some updates, what do you think about putting the code up on  
OpenXCF and contributing the changes. I am happy to relicense my  
original work if others are willing to contribute.

-Matt

On Feb 17, 2004, at 10:50 AM, Adam Hope wrote:

> Hi Stephen,
>
>  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]

Reply via email to