I use http://phpthumb.gxdlabs.com/ for thumbnails and image cropping (on client side is jQuery imgAreaSelect).
I made a simple php function where i will try to set optimal jpeg quality. The result is not as good as yours so i will try other libraries.

Code:
function resize_picture($path, $filename, $action, $percent=100, $x1=0, $y1=0, $width=0, $height=0)
{//require_once './include/phpthumb/ThumbLib.inc.php';
$image = $path . $filename;
$options = array('jpegQuality' => 85);
try
{
$resized = PhpThumbFactory::create($image, $options);
}
catch (Exception $e)
{
print_r("ERROR: Image resizing problem!");
}
if ( ($action == "crop") && ($width+$height > 0) ) $resized->crop($x1, $y1, $width, $height)->save($image); //coords from imgAreaSelect
if ($action == "fixed_size") $resized->adaptiveResize($width, $height)->save($image);
if ($percent < 100) $resized->resizePercent($percent)->save($image);
$resized->adaptiveResize(150, 150)->save( $path."thumb_".$filename);
return getimagesize($image);
}
Bookmarks