Permalink
Browse files

up quality for small post crushes

  • Loading branch information...
1 parent bf41fb8 commit cb78ebfb35909c64067d0b474d5528d3e5fc77d2 @jcutler committed Apr 22, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 serverTools/crushes/index.php
  2. +1 −1 serverTools/crushes/test.php
@@ -136,7 +136,8 @@ function ExecHandle(&$curlHandle) {
*/
header('Content-type: image/jpeg');
-imagejpeg($img, NULL, 80);
+$quality = $large ? 80 : 90;
+imagejpeg($img, NULL, $quality);
imagecolordeallocate($img, $wh);
imagecolordeallocate($img, $bl);
@@ -143,7 +143,7 @@ function ExecHandle(&$curlHandle) {
imagepng($img);
}
else {
- $quality = 80;
+ $quality = $large ? 80 : 90;
if (isset($_GET["quality"])) {
$val = (int)$_GET["quality"];
if ($val >= 0 && $val <= 100)

0 comments on commit cb78ebf

Please sign in to comment.