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

u4gm Why Arc Raiders Feels So Good With a Real Team

Arc Raiders doesn't look like another sci-fi shooter you burn through in a weekend and forget. From what's been shown so far, it feels built aroun ...

Geschrieben von luissuraez798 am 17.04.2026 09:51:13
Forum: PHP Developer Forum
u4gm Where MLB The Show 26 Really Comes Alive

There's a reason this series still sets the pace for baseball sims. MLB The Show 26 gets the feel of the sport right, from the slow burn of a tens ...

Geschrieben von luissuraez798 am 17.04.2026 09:50:36
Forum: News / Kostenloses
u4gm Battlefield 6 Guide to Large Scale Warfare

Battlefield 6 feels like the first time in years that the series really understands why people showed up in the first place. It's not just about r ...

Geschrieben von luissuraez798 am 17.04.2026 09:50:00
Forum: Fragen/Vorschläge zum Forum
u4gm How to Win More in Battlefield 6

There's a certain mood only Battlefield can pull off. You load in, hear jets overhead, see smoke climbing off a broken street, and straight away i ...

Geschrieben von luissuraez798 am 17.04.2026 09:49:21
Forum: SQL / Datenbanken