Questions tagged [pythonmagick]

PythonMagick is a Python library that provides object oriented bindings for the ImageMagick Library.

pythonmagick
19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
275 views

PDF to Image conversion in Python 3.6.5 : Issue setting dpi in PythonMagick

I am not able to set the dpi of an Image object. The last line in the code is always throwing me an error message.. please see below : import PythonMagick from PythonMagick import Image p = ...
RRaj's user avatar
  • 41
3 votes
1 answer
484 views

PythonMagick ColorSpace type

I tried: from PythonMagick import Image img = Image("input.jpg") img.quantizeColorSpace("sRGB") And get: Traceback (most recent call last): File... img.quantizeColorSpace("sRGB") Boost....
Ivan Zelenskyy's user avatar
1 vote
0 answers
52 views

PythonMagick. All black image bug

I use PythonMagick in my project. When i convert SVG to JPG in command line like "convert x.svg x.jpg" it's ok. When i use PythonMagick i get all black image. I'm confused cuz i have that error only ...
govno_python's user avatar
1 vote
0 answers
243 views

Pythonmagick fails to read transparent pdf file

I am using PythonMagick to convert multiple-page .pdf files into .png files but failed as long as the .pdf file's background are transparent. My ImageMagick version is 7.0.7-5 and Ghostscript version ...
TooYoung's user avatar
  • 387
1 vote
1 answer
375 views

Convert PythonMagick Image object to numpy array (for OpenCV) and then to PIL image object

I want to convert a PythonMagick Image Object to a NumPy array that can be used in OpenCV, and then I want to convert it into a PIL image object. I have searched Google but cannot find any sources ...
adithya's user avatar
  • 25
1 vote
0 answers
96 views

Accessing histogram in PythonMagic

Is it possible to access a histogram (as a tuple I'm thinking??) from within PythonMagick? #!/usr/bin/env python import PythonMagick img = PythonMagick.Image("c:\\temp\\temp\\sample_image.jpg") h = ...
Mr Mystery Guest's user avatar
1 vote
1 answer
7k views

Confused on how to install PythonMagick module

Use Case - I'm trying to convert TIFF to PDFs and I stumbled on PythonMagick .9 but I have trouble installing it. Most of the questions I have found both here and from Google are related to older ...
LampPost's user avatar
  • 856
1 vote
0 answers
585 views

Can't install PythonMagic on Mac OS

I can/t install PythonMagick, all problem is in Boost::Python. I'm installing boost wirh brew: brew install boost also tried to install boost from source: ./bootstrap.sh --prefix=/usr/local/Cellar/...
Sleepwalker's user avatar
1 vote
1 answer
2k views

Create an Image either using Magick Wand or ImageMagick on Python 3

There's not enough information on Internet about imagemagick and magick wand on Python 3. I need to create a lot of images using Python 3, creating the images with a background color or a background ...
Javittoxs's user avatar
  • 481
0 votes
0 answers
611 views

Python pip install PythonMagick (Pycharm)

I'm trying to install package "PythonMagick" in pycharm but I've been getting this error EDIT: I'm trying to run doc2text but I get "ModuleNotFoundError: No module named 'PythonMagick'&...
Alwayslearning's user avatar
0 votes
0 answers
71 views

Magick++ -label equivalent

Trying to convert the Image Magick convert command: convert -size 50x50 -background white -fill black -gravity center label:Ryan test.gif to magick++/PythonMagick. Cannot use annotate since I need ...
Rutwik Kharkar's user avatar
0 votes
1 answer
389 views

PythonMagick Unable to open config file

I am running Python 3.6 in a venv on 64 bit Windows 10 inside PyCharm. Here are the steps I performed: Open PyCharm and start a new project using Python 3.6 as the venv. Downloaded the PythonMagick ...
P Moran's user avatar
  • 1,712
0 votes
1 answer
445 views

pdf to JPG conversion using PythonMagick

I am trying to convert pdf file(which is scanned image with extension .pdf) into .jpg which is having multi pages using Python 3.6 with PythonMagick 0.9.13, ghostscript 0.6. All have been installed ...
ras's user avatar
  • 51
0 votes
1 answer
276 views

Unable read OCR PDF in Python

I'm trying to read a .pdf file for the first time in python, This file has OCR in it. from wand.image import Image from PIL import Image as PI #import pyocrfrom PythonMagick import Image from ...
Andre_k's user avatar
  • 1,700
0 votes
0 answers
586 views

Trouble Installing PythonMagick on Windows 7: "Package missing..."

When I try installing PythonMagick on Windows 7 via a conda install -c melund pythonmagick=0.9.10 command, I get this error: Package missing in current win-32 channels: - pythonmagick 0.9.10* ...
Eric's user avatar
  • 41
0 votes
0 answers
91 views

Make for PythonMagick results in infinite loop

I'm trying to get PythonMagick installed on my Macbook running MacOS 10.9.4. I've followed a set of instructions from various pages, including a very helpful page found here: http://www.geero.net/...
Caspar's user avatar
  • 51
0 votes
0 answers
157 views

PythonMagick - why the parameters do not reflect the ones of 'convert'

I'm doing img = PythonMagick.Image('image.jpg') img.threshold(30) Why this does not correspond to manually running convert -threshold 30% Same for 0.3. Similar problem with blur 0x1 EDIT: From ...
Mercier's user avatar
  • 96
0 votes
1 answer
1k views

PythonMagick: Convert RGB to Grayscale

I found this description link_1, link_2. Trying to do so import PythonMagick img = PythonMagick.Image('file.png') img.colorSpace('GRAYColorspace') Return this ArgumentError: Python argument types ...
pypy's user avatar
  • 1
0 votes
1 answer
790 views

Error Installing PythonMagick Under OSX Lion

Has anyone here on StackOverflow been able to get PythonMagick successfully installed on a Mac computer running Lion? I've downloaded the PythonMagick source and installed all of the dependencies ...
Leachy Peachy's user avatar