Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv26460
Modified Files:
serendipity_functions.inc.php
Log Message:
1) We don't preserve transparency (need a fix..)
2) We need to make sure PHP is compiled with imagepng before we use it
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- serendipity_functions.inc.php 4 Jun 2003 22:02:17 -0000 1.58
+++ serendipity_functions.inc.php 4 Jun 2003 22:10:20 -0000 1.59
@@ -1150,10 +1150,13 @@
if ( !function_exists($loadfn) ) {
return false;
}
- /* If the save function does not exist (i.e. read-only GIF), we want to output it as PNG
- This will at the same time preserve GIF transparency */
+ /* If the save function does not exist (i.e. read-only GIF), we want to output it as PNG */
if ( !function_exists($savefn) ) {
- $savefn = "imagepng";
+ if ( function_exists("imagepng") ) {
+ $savefn = "imagepng";
+ } else {
+ return false;
+ }
}
$in = $loadfn($infilename);
|