Questions tagged [pythonmagick]

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

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

ImageMagick is a free software suite to create, edit, and compose bitmap images. It can read, convert and write images in a large variety of formats. Images can be cropped, colors can be changed, various effects can be applied, images can be rotated and combined, and text, lines, polygons, ellipses and Bézier curves can be added to images and stretched and rotated.

43 questions
1
vote
0 answers

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 at 2 of 4 computers. They all have approximately…
1
vote
0 answers

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 is 9.22 Here is what I did: # just read the first…
TooYoung
  • 387
  • 8
  • 18
1
vote
1 answer

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 explaining how to do this. Can someone show me how…
adithya
  • 25
  • 1
  • 7
1
vote
1 answer

Polaroid Effect with Images in Python

I'm trying to take an image and add the following effect from imagemagick http://www.imagemagick.org/Usage/transform/#polaroid. I've searched for Python code examples and have been unsuccessful. I don't need to use imagemagick(wand, pythonmagick,…
1
vote
0 answers

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 = img.convert().histogram() # pseudo code for the…
Mr Mystery Guest
  • 1,464
  • 1
  • 18
  • 47
1
vote
1 answer

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 versions of PythonMagick which leads to dead links or…
LampPost
  • 856
  • 11
  • 30
1
vote
1 answer

Error while trying to install PythonMagic 0.9.11 on Fedora 21

The following is the output on the command line when I run make on the Pythin0.9.11 folder. I'm on fedora 21. [user@localhost PythonMagick-0.9.11]$ make Making all in pythonmagick_src make[1]: Entering directory…
Vishal Desai
  • 317
  • 1
  • 6
  • 14
1
vote
1 answer

How to compose with center gravity in PythonMagick

I did appreciate the answer by Orbling on .composite(): flattened.composite(img, 0, 0, PythonMagick.CompositeOperator.SrcOverCompositeOp) This is the form where the second image is placed to the (0, 0) coordinates of the original image. I tried,…
pepr
  • 20,112
  • 15
  • 76
  • 139
1
vote
0 answers

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/boost --with-libraries=python ./b2 install Every…
Sleepwalker
  • 249
  • 2
  • 11
1
vote
1 answer

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 image. When I get the image with the background I…
Javittoxs
  • 481
  • 2
  • 7
  • 18
0
votes
2 answers

TypeError: No to_python (by-value) converter found for C++ type: MagickCore::ResolutionType

The following code: import subprocess import PythonMagick subprocess.run(["convert","rose:","test.pnm"]) print(PythonMagick.Image("test.pnm").resolutionUnits()) produces the error: TypeError: No to_python (by-value) converter found for C++ type:…
DobbyTheElf
  • 604
  • 6
  • 21
0
votes
0 answers

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'" ERROR: Could not find a version that satisfies the requirement…
Alwayslearning
  • 173
  • 1
  • 1
  • 9
0
votes
0 answers

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 to have the text auto-sized, which 'label' does. I…
0
votes
1 answer

PythonMagick installation on Ubuntu

I am trying to install python library "PythonMagick" on the Ubuntu. On the Windows 10 I used this link: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonmagick And it works fine. For example (using PyCharm and Windows 10), that code converts every…
MuscleUpUp
  • 121
  • 2
  • 10
0
votes
1 answer

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 from a wheel file for Python3.6 from this…
P Moran
  • 1,624
  • 3
  • 18
  • 32