Add transparent background to x-faces in the example
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Fri, 14 Jul 2006 19:44:32 +0000 (19:44 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:57 +0000 (00:34 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@96 9869982d-c50d-0410-be91-f2a2ec7c7c7b

examples/xface.php

index 5e69c89..613ff06 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 
-header('Content-Type: image/jpeg');
+header('Content-Type: image/gif');
 passthru('echo ' . escapeshellarg(base64_decode($_REQUEST['face']))
         . '| uncompface -X '
-        . '| convert xbm:- jpg:-');
+        . '| convert -transparent white xbm:- gif:-');
 
 // vim:set et sw=4 sts=4 ts=4
 ?>