note 1573 deleted from ref.image by didou
| From: | didou@php.net | Date: | Sun, 07 Dec 2003 02:17:50 +0000 |
| Subject: | note 1573 deleted from ref.image by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61503@lists.php.net to get a copy of this message | ||
Note Submitter: johntarter@hotmail.com
----
It is easy to use ImageMagick to generate images dynamically in php3. Here is an example:
<?php
Header("Content-type: image/gif"); passthru("/opt/x11/bin/convert -crop 0x0
-bordercolor white -border 10x10 inputfile.gif GIF:-
?>
The header is important, the passthru functions means binary data will be safe, and "-"
means ImageMagick will print to stdout instead of saving to a file.