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

Branchen Verzeichniss

Цвей (http://audiobookkeeper.ru/book/1154)64.4 (http://cottagenet.ru)Bett (http://eyesvision.ru/better-eyesight-magazine-better-eyesight-1924- ...

Geschrieben von ymah am 18.01.2026 13:43:16
Forum: Apps und PHP Script Gesuche
Aktienbörse...?

реал (http://audiobookkeeper.ru/book/1153)62 (http://cottagenet.ru/plan/21)Bett (http://eyesvision.ru)Bett (http://eyesvisions.com/better-eyes ...

Geschrieben von ymah am 18.01.2026 13:42:01
Forum: Apps und PHP Script Gesuche
suche php script

сюже (http://audiobookkeeper.ru/book/1152)62 (http://cottagenet.ru)Bett (http://eyesvision.ru/better-eyesight-magazine-better-eyesight-1924-07 ...

Geschrieben von ymah am 18.01.2026 13:40:46
Forum: Apps und PHP Script Gesuche
Subhosting Script

Егор (http://audiobookkeeper.ru/book/1151)59.7 (http://cottagenet.ru/plan/20)Bett (http://eyesvision.ru)Bett (http://eyesvisions.com/better-ey ...

Geschrieben von ymah am 18.01.2026 13:39:31
Forum: Apps und PHP Script Gesuche