Questions tagged [magickwand]

106 questions
1
vote
3 answers

How do I get the number of images that a MagickWand is holding?

I can iterate though them and count, but I don't see any methods to return the number of images directly. Is there one?
Thrill Science
  • 408
  • 4
  • 14
1
vote
2 answers

Handling files in Django

I'm using ImageMagick and the binding wand to generate thumbnails for uploaded images in Django. I can generate the thumbnail fine, but I'm uncertain about how to go about passing the image object from ImageMagick back into the Django model. So I…
TimD
  • 1,371
  • 3
  • 12
  • 20
1
vote
1 answer

windows VC9 ffmpeg and magick wand

I am looking for a ffmpeg and magickwand extension for PHP 5.3 compiled with MSVC9 (Visual C++ 2008). Anyone know any?
transilvlad
  • 13,974
  • 13
  • 45
  • 80
0
votes
2 answers

MagickWand for C: Lack of documentation means more errors for me

I am writing an improved Perlin noise (I don't really understand simplex noise) terrain generator for C, and I am practically finished with the alpha build. However, there is one thing holding me back: actually saving the stupid image. I recruited…
mszegedy
  • 185
  • 1
  • 9
0
votes
0 answers

Segmentation Fault running Wand example inside Pyramid project

I'm getting segmentation fault running the example in Wand 0.1.9: from urllib2 import urlopen from wand.image import Image response = urlopen('https://stylesha.re/minhee/29998/images/100x100') try: with Image(file=response) as img: …
oriharel
  • 10,418
  • 14
  • 48
  • 57
0
votes
1 answer

Negative Multiply with imagemagick?

Does anyone know if it's possible to do the Photoshop layer composite mode "negative multiply"? Multiply is possible, but i need the negative way. MagickBooleanType aStat = MagickCompositeImage(magick_wand_local, magick_wand_local_comp,…
Jonas Schnelli
  • 9,965
  • 3
  • 48
  • 60
0
votes
0 answers

Why is Wand not rendering SVG to PNGs correctly on mac - ignoring Inkscape?

I have a Python Flask application on RHEL 7 that I'm using to convert SVGs to PNGs through Wand. I was running into problems with font handling, but with Inkscape installed that fixed the issue. The SVG renderer switched automatically as expected. I…
pcclarke
  • 68
  • 6
0
votes
1 answer

MagickReadImage fails to read any image

I'm using ImageMagick to build a C application. A sample code is: #include ... void * readPng(char *filename) { MagickWandGenesis(); MagickWand * pngimgreader; pngimgreader = NewMagickWand(); if…
0
votes
2 answers

MagickWand for C, error when calling DestroyPixelWands

I am starting to use ImageMagick and the MagickWand API in a simple C program. Right now, as a test, I am just looking for black pixels in a frame. Here is my code : int find_black_pixel(MagickWand *wand) { int res = 0; PixelIterator *…
Matthieu
  • 16,103
  • 10
  • 59
  • 86
0
votes
1 answer

How to fix AttributeError: 'Image' object has no attribute 'seek'. Did you mean: 'seed'?

I am trying to create a pptx or powerpoint file using python-pptx and reading the image using python wand library but getting error like AttributeError: 'Image' object has no attribute 'seek'. Did you mean: 'seed'? Note: All the files are in same…
0
votes
1 answer

Applying wand to all images in a directory

I try to convert all the pdf of a directory into images, but I have an issues because it only convert one pdf not all of them. import matplotlib import pytesseract import os import argparse import cv2 from PIL import Image import PyPDF2 from…
user15235831
0
votes
1 answer

Image creation with Wand in Python

My goal for the project that I'm working on is to take in the content from a word document and then output a single image that contains bordered boxes that contain the segments of text that I've automatically funneled through with my code. Here is…
Jimmy Wede
  • 107
  • 1
  • 7
0
votes
1 answer

ImageMagick composite two images and fill transparent data with original data

I have two 256X256 images, one has full purple background and the other has some of it transparent. I want to copy the second image into the first image, so that the transparent data from the second image is filled by the data from the first…
rolory
  • 362
  • 1
  • 2
  • 15
0
votes
1 answer

MagickWand 7 API: how to port MagickSetImageClipMask call

ImageMagick 7 dropped this call, but I can't find any example of how to replicate its functionality in the new version. My aim is to composite two images with a mask. Here's vastly simplified go code for what I was doing in version 6. func…
Robert Schaaf
  • 81
  • 1
  • 3
0
votes
0 answers

How to improve performance of bi-level image type in MagickWand Python?

I am working on a python script which converts DXF files from AutoCAD into high resolution bi-level TIFF files using the MagickWand bindings library. The script works exactly as expected, but I am looking for ways to improve the performance. Here is…