Interakt resize image quality

zener
11-22-2005 17:29:38 GMT +2
Hello,

I’m using the tNG_showDynamicThumbnail function to create thumbnails dynamicaly.

I need a way to set the quality of the thumbnail? Is it possible? the generated thumbnails are too big…

Thank you in advance

Back | Reply | Quote | Top
Florin CARLIG[InterAKT]
11-23-2005 18:11:15 GMT +2
Hello zener,

Take a look at the code in the includes\common\lib\image\KT_image.class.php – look at the resize_gd function. Lower the 80 from this function:

$this->createNewImg($img, $folder . $destinationFileName, 80);

to decrease quality.

Regards,
Florin CARLIG

Leave a comment