Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv21592
Modified Files:
serendipity_functions.inc.php
Log Message:
Thumbnails look much prettier like this when using imagick.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- serendipity_functions.inc.php 28 Apr 2003 21:13:40 -0000 1.39
+++ serendipity_functions.inc.php 21 May 2003 00:20:09 -0000 1.40
@@ -133,7 +133,9 @@
// Be able to print borders nicely
$cellProp = "";
if ($y==0) $cellProp = "FirstInRow";
+ if ($y==6) $cellProp = "LastInRow";
if ($x==4) $cellProp = "LastRow";
+ if ($x==4 && $y==6) $cellProp = "LastInLastRow";
// Start printing
if (($x>0 || $y>=$firstDayWeekDay) && $currDay<=$nrOfDays) {
@@ -157,7 +159,7 @@
$currDay++;
}
else {
- print ("<TD CLASS='serendipity_calendarBlankDay'> </TD>");
+ print ("<TD CLASS='serendipity_calendarBlankDay$cellProp'> </TD>");
}
}
print ("</TR>");
@@ -1098,7 +1100,7 @@
/*if ($serendipity["dim"] == "height") $newSize = "*x".$serendipity["thumbSize"];
else $newSize = $serendipity["thumbSize"]."x*"; */
$newSize = $size."x$size";
- $cmd = $serendipity["convert"]." ".$infile." -sample $newSize -antialias $outfile 2>&1";
+ $cmd = $serendipity["convert"]." -antialias -scale $newSize $infile $outfile 2>&1";
$res = `$cmd`;
return $res;
}
|