MyBB Community Forums

Full Version: thumbnails sharpening
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It's common practice to sharpen thumbnail images. They looks much better then. You can do it with this trivial code:
// sharpening
$matrix = array(array(-1, -1, -1), array(-1, 24, -1), array(-1, -1, -1));
imageconvolution($thumbim, $matrix, 16, 0);

Probably this can be also done in the plugin assigned to "upload_attachment_do_insert" hook.
I think this should be an option in the ACP
It can be always switch on IMO, see the nice explanation here: http://www.smugmug.com/help/display-quality
Hmm, looking around, it looks like PHP's imagecopyresampled function does a bilinear resample. A bicubic/lanczos resample would be much better, but seems like PHP can't do it. Sad

Sharpening isn't a bad idea though Smile