--- imagick.c.orig 2007-04-12 21:09:22.000000000 -0300 +++ imagick.c 2007-07-12 18:12:17.000000000 -0300 @@ -246,6 +246,14 @@ /***** + Strip an image. + + *****/ + + PHP_FE( imagick_strip, NULL ) + + /***** + Set image attributes. *****/ @@ -5393,6 +5401,45 @@ /****************************************************************************** * + * Strip an image. + * + */ + +PHP_FUNCTION( imagick_strip ) +{ + zval* handle_id ; /* the handle identifier coming from + the PHP environment */ + imagick_t* handle ; /* the actual imagick_t struct for the + handle */ + + if ( zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "r", + &handle_id ) == FAILURE ) + { + return ; + } + + handle = _php_imagick_get_handle_struct_from_list( &handle_id TSRMLS_CC ) ; + if ( !handle ) + { + php_error( E_WARNING, "%s(): handle is invalid", + get_active_function_name( TSRMLS_C ) ) ; + RETURN_FALSE ; + } + + if ( StripImage( handle->image ) ) + { + RETURN_TRUE ; + } + else + { + RETURN_FALSE ; + } +} + +/*****************************************************************************/ + +/****************************************************************************** + * * Set image attributes. * */ --- php_imagick.h.orig 2007-07-12 18:12:12.000000000 -0300 +++ php_imagick.h 2007-07-12 18:12:17.000000000 -0300 @@ -260,6 +260,14 @@ /***** + Strip an image. + + *****/ + + PHP_FUNCTION( imagick_strip ) ; + + /***** + Set image attributes. *****/