Questions tagged [magickwand]

106 questions
1
vote
1 answer

ImageMagick to write image file row by row (or band by band)

Does ImageMagick (C API MagickWand) have a functionality to generate an image file (.jpg, .tif) using RGB raster data? If so, can it also generate an image file band by band, meaning write few rows at a time until it writes the whole image? Or one…
Megool
  • 963
  • 2
  • 8
  • 29
1
vote
2 answers

how to get CMake to add MagickWand library linking automatically everywhere

I want to use CMake in my software that uses MagickWand. CMake works on my machine and generates a useful Makefile. On another machine, I have to manually add set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lMagickWand-6.Q16 -lMagickCore-6.Q16") otherwise…
user964843
1
vote
2 answers

How to set background color for transparent pixels in MagickWand?

When converting from PNG to JPG using the MagickWand API, how do I set the background to white for transparent pixels?
Gburd
1
vote
1 answer

Manipulating .gif animation with wand

I'm working with wand to basically do a frame-by-frame translation of a gif. I want to transpose an image into each frame of a gif, then save the output animated gif. def placeImage(gif_name, image_name, save_location): with Image(filename =…
cjtall
  • 11
  • 2
1
vote
1 answer

Place image on another image with aspect fill

I'm using wand 0.4.1 and want to place an image on top another. The crux is that the image to be placed is lets say 400px wide but I want it to stretch to a different width, lets say 700px. The image should be stretched correctly with the aspect…
Hashirun
  • 89
  • 1
  • 9
1
vote
1 answer

MissingErrorDelegate with django while image uploading and editing

Why does this not work? from wand.image import Image def upload_to_cars(instance, filename): blocks = filename.split('.') ext = blocks[-1] filename = "%s.%s" % (instance.name.replace(" ", "-"), ext) with Image…
Tom
  • 2,545
  • 5
  • 31
  • 71
1
vote
1 answer

Segmentation Fault Django ImageMagick

im doing a web aplication using the API of instagram. One of the points required for this exercise is "Use a C library in a python code" so im using CTYPES to adapt ImageMagick to apply a filter to photos. So, i've got the URL image and i want to…
Shaderlolz
  • 21
  • 3
1
vote
3 answers

PythonMagickWand Shepards Distortion (ctypes LP_c_double problem)

I am trying to use PythonMagickWand to use a Shepards distortion on an image. You can also see the source of distort.c that is used by ImageMagick. PythonMagickWand does not by default support Shepards distortion. To fix this, I added…
betamax
  • 13,431
  • 9
  • 38
  • 55
1
vote
1 answer

MagickCommandGenesis always returns MagickFalse

There is really not much relevant info, and official manual makes me cry. I'm trying to run custom scripts via MagickCommandGenesis because I gave up in attempt to convert some scripts into clean c code with API usage. However, this piece of code: …
Tommi
  • 3,199
  • 1
  • 24
  • 38
1
vote
2 answers

Extract embedded JPG from a RAW file w/ Python's MagickWand

I'd like to create thumbnails for RAW files, but processing the RAW file directly is very slow. I'd like to try to process the thumbnails from the embedded JPG first, and only render the RAW file as a last resort. How can I extract the embedded JPG…
ensnare
  • 40,069
  • 64
  • 158
  • 224
1
vote
1 answer

Magick++: Image -> draw() problems when drawing text

I complied ImageMagick-6.8.8 on Mac 10.9.2 with static libraries with support for Magick++. Now I am trying to execute the following example from the Magick++ tutorial pdf on page 19 ( I have removed the comments from the following code …
MuTaTeD
  • 861
  • 2
  • 8
  • 13
1
vote
1 answer

Accessing unsupported APIs with wand-py?

How can I access an unsupported Wand API via the Python Wand interface? For example, I wish to call the Wand API MagickAddNoiseImage but it is not available in the Python interface.
edA-qa mort-ora-y
  • 30,295
  • 39
  • 137
  • 267
1
vote
1 answer

cx_freeze over Python Wand (imagemagick)

Wand needs the ImageMagick library to perform. When I do as they explain here my code works just fine on my computer. However, when I freeze it with cx_freeze it misses the extra library. I don't know how to add that library to the zip. I know how…
Kiarash
  • 7,378
  • 10
  • 44
  • 69
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
1
vote
2 answers

Wand Python multi-size icon

i'm trying to use Wand to create a multi-size ico, but i don't find anything talking about that, only normal conversion, to ico... i've found "Sequences": https://wand.readthedocs.org/en/latest/roadmap.html and sequences look like what i need, but i…
Joaolvcm
  • 1,983
  • 3
  • 20
  • 24