Quantcast
Channel: ImageMagick
Viewing all articles
Browse latest Browse all 35

MagickWand • Re: Gradient options via MagickWand

$
0
0
Yes! Although it's a little awkward in python. You need to set the property before reading the image. Usually like:

Allocate an instance of wand w/o an image
Set the definition on Image.options dict.
Read pseudo format
For example...

from wand.image import Image

with Image() as img:
img.options['gradient:vector'] = '10,10,75,75'
img.pseudo(256, 256, 'gradient:white-black')
img.save(filename='output.png') Shareit app vidmate apk

Statistics: Posted by barrysingh102 — 2019-12-28T13:23:37-07:00



Viewing all articles
Browse latest Browse all 35

Latest Images

Trending Articles



Latest Images