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

Top love spells in united states ,uk, newyork +27785149508 /

BRING LOST LOVER BACK NOW Love spells may apply to the following circumstances: You feel lonely, and you want a suitable partner, You wish for a ...

Geschrieben von profibrahim am 26.06.2026 10:34:50
Forum: User pages
My Secret Love Spell: Get Them to Reach Out in 3 Hours! ✨ [+27785149508 /]

+27785149508 /TOP Love spells That Work Immediately [+27785149508 /] top Effective Love Spells Caster - Best Psychic Love Spells Caster to bring b ...

Geschrieben von profibrahim am 26.06.2026 10:32:38
Forum: BRAINSTORMING PHP/SQL/HTML/JS/CSS
Powerful money spells that Work Fast IN USA NEW YORK +27785149508.

Money spells that will increase your wealth, money spells to help you get more money and money spells to solve all your financial problems. I have ...

Geschrieben von profibrahim am 26.06.2026 10:28:05
Forum: News / Kostenloses
COURT SPELLS THAT WORK FAST in USA NEAR ME NOW +27785149508 /

Court case spells to win any legal matter & stay out of jail. Legal spells to influence court verdict in your favor. Spells to get a court case di ...

Geschrieben von profibrahim am 26.06.2026 10:26:28
Forum: XML