Questions tagged [magickwand]
106 questions
0
votes
1 answer
Azure Python function: unable to open image '': No such file or directory @ error/blob.c/OpenBlob/3537
Hello Python Azure Guru's,
I want to creating an Local Azure Python Function which read pdf data from file an convert it to "jpeg" therefor i use imagemagick and the python binder of imagemagick. First i create the python function and which runs…

Erik hoeven
- 1,442
- 6
- 26
- 41
0
votes
1 answer
How to save a multipage pdf file to tiff using MagickWand C-API
I have the following code which converts a pdf to a tiff file, I have two problems with it.
When my pdf file is composed of two pages for example, i have only the second page converted to tiff.
The tiff file quality is very bad compared to the same…

elhadi dp ıpɐɥןǝ
- 4,763
- 2
- 30
- 34
0
votes
1 answer
Get binary data from image using Magick Wand API
I am trying to get an image in binary data so that I can base64 encode it. I am using the MagickGetImageBlob() of the Magick Wand API but the Blob I am receiving does not contain the entire information.
My code is as follows. opt and enc are two…

hw-135
- 162
- 1
- 15
0
votes
1 answer
Problem applying transformation on tiff images using wand
I am using wand package to convert a pdf file to tif file. I called Image. transform function to resize the image. Below is the code snippet
with Image(filename='sample.pdf') as img:
img.format='TIF'
img.transform('50%')
…

Yuyeyuan
- 1
- 1
0
votes
1 answer
PHP MagickWand True Grayscale
Im looking for a way to replicate the Photoshop Grayscale/Desaturate feature in PHP, I have MagickWand installed on the server.
I have tried numerous different methods (including iterating the pixels) but the contrast is always altered (brighter)…

Michael L Watson
- 964
- 13
- 23
0
votes
1 answer
How to keep the image aspect ratio when resize?
For example, when I only provide one of the length or width parameters, another parameter is automatically calculated while maintaining the aspect ratio of the image.
Is there a related function in the MagicWand library? Still have to calculate the…

Hentioe
- 228
- 1
- 9
0
votes
1 answer
Can't compile MagickWand using CMake
I couldn't compile my program which uses MagickWand with CMake. I'm getting this error:
[ 33%] Linking CXX executable bin/ScreenRecorder
/usr/bin/ld: CMakeFiles/ScreenRecorder.dir/source/main.cpp.o: in function `std::thread::thread

PrograMed IP
- 19
- 1
- 8
0
votes
1 answer
Trouble installing RMagick on Snow Leopard
Whenever I try to install the rmagick gem using sudo gem install rmagick the install fails when it tries to include a header file called wand/MagicWand.h
The exact error from the log file is:
gcc -E -I.…

Pterofractal
- 3
- 1
0
votes
0 answers
Create PNG from SVG with embedded image
I have been struggling for days with this:
I have an svg image which shows the colours selected by a site user overlaid on an image of the product. In other words, the svg contains the base image (either as an xlink to a local file (same directory)…

e4effect
- 29
- 11
0
votes
1 answer
How to create an image with magick wand from raw data string in Python
I have a raw data string, for example like this:
raw_data =…

Tom
- 2,545
- 5
- 31
- 71
0
votes
1 answer
Magickwand C change image color
I have a method called single_color for image. It changes the color of an image. It was working on my previous image magick version but after upgraded my version, it's not working.
ImageMagick Version
Version: ImageMagick 7.0.5-9 Q16 x86_64…

Rahul
- 1,013
- 1
- 10
- 24
0
votes
1 answer
MagickConstituteImage() segfaults in C
I am trying to create an image from a float * array. However, MagickConstituteImage constantly segfaults. Here is a summary of the relevant code (the problem occurs in the function writeRawImage()):
#include
#include
#include…

afdggfh
- 135
- 9
0
votes
1 answer
How to append pages of a pdf to a png in python with imagemagick
I'd like to convert a multipage PDF to a single PNG, which can be achieved via the CLI with convert in.pdf -append out%d.png per Convert multipage PDF to a single image.
Can I achieve the same in Python without shelling out? I currently have:
with…

Martin
- 6,632
- 4
- 25
- 28
0
votes
2 answers
where's libmagickwand-dev (I installed them all) and how can I include it to a C program
I installed all the libmagick-dev packages (magickwand, magick++, etc) in Ubuntu 16.04 but I don't know where is the library... So I haven't included it to my C program.
I need to use the pixel level functions for a project I'm developing
When…

Sergio Pastor
- 3
- 2
- 5
0
votes
1 answer
How to debug MagickReadImage fail when no Exception occurs
I have some MagickWand code where the MagickReadImage() fails (returns MagickFalse) on one system where it works on the other.
Now there is no exception occuring, MagickGetException() returns an empty string which means no exception if I understood…
user964843