cvs: pear /PECL/imagick imagick.h package.xml /PECL/imagick/examples transparent_1x1.html
| From: | Michael C. Montero | Date: | Wed, 19 Feb 2003 17:28:37 +0000 |
| Subject: | cvs: pear /PECL/imagick imagick.h package.xml /PECL/imagick/examples transparent_1x1.html | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8959@lists.php.net to get a copy of this message | ||
mcmontero Wed Feb 19 12:28:37 2003 EDT
Added files:
/pear/PECL/imagick/examples transparent_1x1.html
Modified files:
/pear/PECL/imagick imagick.h package.xml
Log:
Just starting to get the next round of changes in.
Index: pear/PECL/imagick/imagick.h
diff -u pear/PECL/imagick/imagick.h:1.10 pear/PECL/imagick/imagick.h:1.11
--- pear/PECL/imagick/imagick.h:1.10 Mon Feb 17 11:42:53 2003
+++ pear/PECL/imagick/imagick.h Wed Feb 19 12:28:37 2003
@@ -16,7 +16,7 @@
| Christian Stocker (chregu@bitflux.ch) |
+----------------------------------------------------------------------+
- $Id: imagick.h,v 1.10 2003/02/17 16:42:53 mcmontero Exp $
+ $Id: imagick.h,v 1.11 2003/02/19 17:28:37 mcmontero Exp $
*/
#ifndef IMAGICKH
@@ -24,7 +24,7 @@
#include <magick/api.h>
- #define IMAGICK_VERSION "0.9.5"
+ #define IMAGICK_VERSION "0.9.6"
#define IMAGICK_TURN_OFF_ERRORS_TO_STDERR 1
#define IMAGICK_FILTER_UNKNOWN -1
#define IMAGICK_DEPCREATED() php_error( E_WARNING, "%s(): this function is deprecated and
will be removed soon", get_active_function_name( TSRMLS_C ) ) ;
Index: pear/PECL/imagick/package.xml
diff -u pear/PECL/imagick/package.xml:1.47 pear/PECL/imagick/package.xml:1.48
--- pear/PECL/imagick/package.xml:1.47 Wed Feb 19 01:02:23 2003
+++ pear/PECL/imagick/package.xml Wed Feb 19 12:28:37 2003
@@ -23,6 +23,16 @@
<license>PHP License</license>
<release>
+ <version>0.9.6</version>
+ <date>2003-xx-xx</date>
+ <notes>
+- added a new example called transparent_1x1.html and some explanatory text.
+ I can think of many uses for this code.
+ </notes>
+ <state>beta</state>
+ </release>
+
+ <release>
<version>0.9.5</version>
<date>2003-02-19</date>
<notes>
Index: pear/PECL/imagick/examples/transparent_1x1.html
+++ pear/PECL/imagick/examples/transparent_1x1.html
<?
//
// You might use this code in the following way:
//
// You have a client to which you are passing one of your users.
// The user is being presented with a form to fill out. When the
// user completes the form you want to somehow also record that
// the user completed the form. So you create a file called:
//
// form_complete.html
//
// And tell your client to add this image tag to their page:
//
// <IMG SRC="http://your.domain.com/form_complete.html?user=x">
//
// You then code a bunch of PHP (perhaps some code that talks to
// a MySQL database) to record the form completion in your database.
// When the request comes to form_complete.html, you add a row in
// a database specifying the user name as $x. You then cut and
// paste this code and what's returned to the user is a completely
// invisible transparent image.
//
// Note: this code produces an image that is 1x1 and 43 bytes large.
// It's tiny and unnoticeable.
//
$handle = imagick_getcanvas( "transparent", 1, 1 ) ;
if ( imagick_iserror( $handle ) )
{
$reason = imagick_failedreason( $handle ) ;
$description = imagick_faileddescription( $handle ) ;
print "handle failed!<BR>\nReason: $reason<BR>\nDescription:
$description<BR>\n" ;
exit ;
}
imagick_convert( $handle, "GIF" ) ;
header( "Content-type: " . imagick_getmimetype( $handle ) ) ;
print imagick_image2blob( $handle ) ;
?>