PHP Doku:: Sharpens an image - function.imagick-unsharpmaskimage.html

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungImage Processing (ImageMagick)The Imagick classImagick::unsharpMaskImage

Ein Service von Reinhard Neidl - Webprogrammierung.

The Imagick class

<<Imagick::uniqueImageColors

Imagick::valid>>

Imagick::unsharpMaskImage

(PECL imagick 2.0.0)

Imagick::unsharpMaskImageSharpens an image

Beschreibung

bool Imagick::unsharpMaskImage ( float $radius , float $sigma , float $amount , float $threshold [, int $channel = Imagick::CHANNEL_ALL ] )
Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Sharpens an image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and Imagick::UnsharpMaskImage() selects a suitable radius for you.

Parameter-Liste

radius

sigma

amount

threshold

channel

Rückgabewerte

Liefert TRUE bei Erfolg.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
Anonymous
24.02.2009 17:00
Prepare photo for web

<?php
$im
= new Imagick($SrcFile);

$im->resizeImage ( $Width, $Height , Imagick::FILTER_QUADRATIC , 1 );
       
$im->normalizeImage();
$im->unsharpMaskImage(0 , 0.5 , 1 , 0.05);
       
$im->setImageFormat( "jpg" );
$im->setCompressionQuality(75);

$im->writeImage( $OutFile );
       
$im->removeImage();
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)