diff --git a/imagick_class.c b/imagick_class.c index dde6a49b..e0964b34 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -8308,7 +8308,7 @@ PHP_METHOD(Imagick, cropThumbnailImage) } /* }}} */ -/* {{{ proto bool Imagick::resetIterator(); +/* {{{ proto void Imagick::resetIterator(); Resets the iterator. Use it in conjunction with Imagick::nextImage() to iterate over all the images in a wand container. */ PHP_METHOD(Imagick, resetIterator) @@ -8322,11 +8322,10 @@ PHP_METHOD(Imagick, resetIterator) /* No magick is going to happen */ if (intern->magick_wand == NULL) { - RETURN_FALSE; + return; } intern->next_out_of_bound = 0; MagickResetIterator(intern->magick_wand); - RETURN_TRUE; } /* }}} */ @@ -13198,7 +13197,7 @@ PHP_METHOD(Imagick, filter) #endif //#if MagickLibVersion < 0x700 #endif // #ifdef IMAGICK_WITH_KERNEL -/* {{{ proto int Imagick::setAntiAlias(bool antialias) +/* {{{ proto void Imagick::setAntiAlias(bool antialias) Set whether antialiasing should be used for operations. On by default. */ PHP_METHOD(Imagick, setAntialias) @@ -13219,8 +13218,6 @@ PHP_METHOD(Imagick, setAntialias) php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to setAntiAlias" TSRMLS_CC); return; } - - RETURN_TRUE; } /* }}} */ @@ -13301,8 +13298,6 @@ PHP_METHOD(Imagick, optimizeImageTransparency) php_imagick_convert_imagick_exception(intern->magick_wand, "Optimize image transparency failed" TSRMLS_CC); return; } - - RETURN_TRUE; } /* }}} */ #endif @@ -13332,8 +13327,6 @@ PHP_METHOD(Imagick, autoGammaImage) php_imagick_convert_imagick_exception(intern->magick_wand, "autoGammaImage" TSRMLS_CC); return; } - - RETURN_TRUE; } /* }}} */ #endif //#if MagickLibVersion >= 0x660 @@ -13362,8 +13355,6 @@ PHP_METHOD(Imagick, autoOrient) php_imagick_convert_imagick_exception(intern->magick_wand, "Unable autoOrient image" TSRMLS_CC); return; } - - RETURN_TRUE; } /* }}} */ #endif // #if MagickLibVersion >= 0x692 @@ -13406,7 +13397,7 @@ PHP_METHOD(Imagick, compositeImageGravity) #endif #if MagickLibVersion >= 0x693 -/* {{{ proto bool Imagick::localContrastImage(float radius, float strength) +/* {{{ proto void Imagick::localContrastImage(float radius, float strength) Attempts to increase the appearance of large-scale light-dark transitions. Local contrast enhancement works similarly to sharpening with an unsharp mask, however the mask is instead created using an image with a greater blur distance. @@ -13433,8 +13424,6 @@ PHP_METHOD(Imagick, localContrastImage) php_imagick_convert_imagick_exception(intern->magick_wand, "Failed to localContrastImage" TSRMLS_CC); return; } - - RETURN_TRUE; } /* }}} */ #endif // #if MagickLibVersion >= 0x693 @@ -13535,8 +13524,6 @@ PHP_METHOD(Imagick, setImageMask) // You want ei->severity. ei->error_number // the Go Imagick library does something like: //return &MagickWandException{ExceptionType(C.int(et)), C.GoString(csdescription)} - - RETURN_TRUE; } /* }}} */ #endif // IM_HAVE_IMAGICK_GETSETIMAGEMASK diff --git a/imagickpixeliterator_class.c b/imagickpixeliterator_class.c index e94e0aab..4971c129 100644 --- a/imagickpixeliterator_class.c +++ b/imagickpixeliterator_class.c @@ -116,7 +116,6 @@ PHP_METHOD(ImagickPixelIterator, resetIterator) #if MagickLibVersion <= 0x628 internpix->iterator_position = 0; #endif - RETURN_TRUE; } /* }}} */