Questions tagged [wand]

The ctypes-based simple ImageMagick binding for Python.

Wand is a ctypes-based simple ImageMagick binding library for Python. It works on Python 2.7, 3.2 through 3.9 and PyPy.

Docs

Community

383 questions
-1
votes
1 answer

Python Wand text - "€"Symbol

I'm looking for a way to display the Euro symbol (€) in a text drawing. It's currently been displayed as shown below: Code: from wand.drawing import Drawing as WandDrawing from wand.image import Image as WandImage with WandDrawing() as draw: …
Nickelza
  • 41
  • 1
  • 4
-1
votes
2 answers

How to get RGB channel using Wand?

I want to get a channel (Red, for example) from an Image using Wand in Python. I already know how to get channel using ImageMagick itself but I want to do the same but using Wand It seems to me that it is not implemented in Wand, or I miss…
Crantisz
  • 227
  • 3
  • 13
-1
votes
1 answer

Why does Appengine image rotation give cache resources error?

I use Appengine standard with: basic_scaling: max_instances: 7 idle_timeout: 4m instance_class: B4_1G i try to rotate an image: def get_image(bucket_name, file_name): blob = storage_client.bucket(bucket_name).get_blob(file_name) _,…
schoon
  • 2,858
  • 3
  • 46
  • 78
-1
votes
1 answer

How do I get Wand for the Raspberry Pi?

I am trying to learn more about displaying graphics with Python 2.7.9 and one post on StackOverflow directed me to wand, but nowhere can I find how to install wand. 'sudo apt-get install wand' fails with 'Unable to locate package…
user3573562
  • 191
  • 11
-1
votes
1 answer

python 2.7 wand: UnicodeDecodeError: (Error in get_font_metrics)

I am getting this error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)" when I try to merge this image "La Pocatière.png". Python 2.7.11 bg_img = Image(filename='C:/Pocatière.png') …
mrzoogle
  • 111
  • 3
  • 14
-1
votes
1 answer

Memoryleak in Python script using Spark

I just started to use Spark for the first time for a OCR task, i have a folder of PDF files containing scanned text documents and I want to convert it to plain text. I first create a parallelized dataset of all the pdf's in the folder and perform a…
Chris p
  • 43
  • 6
-2
votes
1 answer

How to fix TypeError: __init__() takes at least 2 arguments (1 given) Error

I am trying to split the uploaded pdf file into images but i am getting error like take at least 2 arguments(1given). I know this error is already asked but i confused to fix in my program. from pyPdf import PdfFileWriter, PdfFileReader from…
Thala
  • 21
  • 5
-2
votes
1 answer

how to watermark a photo using wand in python?

how to convert this command to python using wand ? composite -dissolve 30% -gravity south output-file.png input-file.jpg watermark.jpg (this command adds a watermark to a photo)
Medya Gh
  • 4,563
  • 5
  • 23
  • 35
1 2 3
25
26