Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

up quality for small post crushes

  • Loading branch information...
commit cb78ebfb35909c64067d0b474d5528d3e5fc77d2 1 parent bf41fb8
@jcutler authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  serverTools/crushes/index.php
  2. +1 −1  serverTools/crushes/test.php
View
3  serverTools/crushes/index.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);
View
2  serverTools/crushes/test.php
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.