Change the way images are shown. re #77

Jpeg quality is lowered but resolution is two times higher.
The image is then reduced with CSS.
The default value is changed.
This commit is contained in:
Sébastien Lucas 2013-07-04 22:37:27 +02:00
parent 2d0449e1d2
commit e840d4cf70
5 changed files with 38 additions and 14 deletions

View file

@ -51,7 +51,7 @@
$src_img = imagecreatefromjpeg($file);
$dst_img = imagecreatetruecolor($nw,$nh);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);//resizing the image
imagejpeg($dst_img,null,100);
imagejpeg($dst_img,null,80);
imagedestroy($src_img);
imagedestroy($dst_img);
return;
@ -76,7 +76,7 @@
$src_img = imagecreatefromjpeg($file);
$dst_img = imagecreatetruecolor($nw,$nh);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);//resizing the image
imagejpeg($dst_img,null,100);
imagejpeg($dst_img,null,80);
imagedestroy($src_img);
imagedestroy($dst_img);
return;