Imagick::sketchImage

(PECL imagick 2, PECL imagick 3)

Imagick::sketchImageSimulates a pencil sketch

Beschreibung

public Imagick::sketchImage(float $radius, float $sigma, float $angle): bool

Simulates a pencil sketch. 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::sketchImage() selects a suitable radius for you. Angle gives the angle of the blurring motion. Diese Funktion ist verfügbar, wenn Imagick gegen die ImageMagick-Version 6.2.9 oder höher kompiliert wurde.

Parameter-Liste

radius

The radius of the Gaussian, in pixels, not counting the center pixel

sigma

The standard deviation of the Gaussian, in pixels.

angle

Apply the effect along this angle.

Rückgabewerte

Liefert true bei Erfolg.

Beispiele

Beispiel #1 Imagick::sketchImage()

<?php
function sketchImage($imagePath$radius$sigma$angle) {
    
$imagick = new \Imagick(realpath($imagePath));
    
$imagick->sketchimage($radius$sigma$angle);
    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

?>

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

在线购买中国护照(Telegram:@Globaldocs16)购买中国护照、身份证、驾驶证

在线购买中国护照(Telegram:@Globaldocs16)购买中国护照、身份证、驾驶证、绿卡、居留证、雅思成绩、工作证、公 ...

Geschrieben von toretovon76 am 16.06.2026 02:27:48
Forum: XML
Buy real and fake Passports (WhatsApp: +1 (615)-314-6286) renew passports

Buy real and fake Passports (WhatsApp: +1 (615)-314-6286) renew passports online, apply for legal passports, buy fake passports, Buy US passports, ...

Geschrieben von toretovon76 am 16.06.2026 02:26:40
Forum: XML
在线购买中国护照(Telegram:@Globaldocs16)购买中国护照、身份证、驾驶证、绿卡

在线购买中国护照(Telegram:@Globaldocs16)购买中国护照、身份证、驾驶证、绿卡、居留证、雅思成绩、工作证、公 ...

Geschrieben von toretovon76 am 16.06.2026 02:24:23
Forum: SQL / Datenbanken
Buy real and fake Passports (WhatsApp: +1 (615)-314-6286) renew passports

Buy real and fake Passports (WhatsApp: +1 (615)-314-6286) renew passports online, apply for legal passports, buy fake passports, Buy US passports, ...

Geschrieben von toretovon76 am 16.06.2026 02:23:45
Forum: SQL / Datenbanken