Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5744
Modified Files:
functions_images.inc.php
Log Message:
- Use 100 image quality, because thumbnails matter
Index: functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_images.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- functions_images.inc.php 10 Dec 2004 17:38:56 -0000 1.15
+++ functions_images.inc.php 10 Dec 2004 18:25:13 -0000 1.16
@@ -271,7 +271,7 @@
$admin = '';
if ($serendipity['serendipityUserlevel'] < USERLEVEL_CHIEF && $file['authorid'] != '0' && $file['authorid'] != $serendipity['authorid']) {
// A non-admin user may not delete private files from other users.
- return;
+ return false;
}
$infile = $outfile = $serendipity['serendipityPath'] . $serendipity['uploadPath'] . $file['path'] . $file['name'] . '.' . $file['extension'];
@@ -291,7 +291,7 @@
serendipity_updateImageInDatabase(array('dimensions_width' => $fdim[0], 'dimensions_height' => $fdim[1]), $id);
- return;
+ return true;
}
@@ -734,7 +734,7 @@
$out = imagecreatetruecolor($newwidth, $newheight);
imagecopyresampled($out, $in, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
- $func['save']($out, $outfilename);
+ $func['save']($out, $outfilename, 100);
$out = null;
$in = null;
|