Fix quotes conversion to html.
[banana.git] / examples / xface.php
index 16d0332..613ff06 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-header('Content-Type: image/jpeg');
-passthru('echo '.escapeshellarg(base64_decode($_REQUEST['face'])).'|uncompface -X |convert xbm:- jpg:-');
+header('Content-Type: image/gif');
+passthru('echo ' . escapeshellarg(base64_decode($_REQUEST['face']))
+        . '| uncompface -X '
+        . '| convert -transparent white xbm:- gif:-');
 
+// vim:set et sw=4 sts=4 ts=4
 ?>