<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
http://stackoverflow.com/questions/2799159/php-gd-image-resizing-to-smaller-new-image-blurring-problem
function imagesharpen( $image)
{
$matrix = array(
array(-1, -1, -1),
array(-1, 16, -1),
array(-1, -1, -1),
);
$divisor = array_sum(array_map('array_sum', $matrix));
$offset = 0;
imageconvolution($image, $matrix, $divisor, $offset);
return $image;
}
http://stackoverflow.com/questions/1533639/image-resize-issue-in-php-gd-creates-ugly-resized-images
Use imagecopyresampled() instead of imagecopyresized().
share|improve this answer
edited Jul 8 '12 at 12:46
Tim Cooper
55.7k15108132
answered Oct 7 '09 at 19:24
timdev
26.4k23654
2
imagecopyresampled() uses the bi-cubic resizing algorithm – Jacco Oct 7 '09 at 20:04