Questions tagged [magickwand]

106 questions
2
votes
0 answers

Converting SVG to PNG with python sometimes results in non-smooth curves

The goal: SVG to PNG in python application I'm converting SVG files to PNG's and having a strange problem. For most files, the PNG renders perfectly, but for some, the curves are rendered as straight lines between points. Technology…
2
votes
0 answers

How can I convert my ImageMagick commands to Wand (Python)?

I'm trying to move a program over to Python, and part if this relies on a shell script where I process some images with ImageMagick. I've installed wand, the ctypes-based ImageMagick bindings for Python but I can't figure out how to get my original…
1
vote
2 answers

iPhone ImageMagick Library - converting from batch file script to Objective-C using MagickWand API

I've decided to use the following ImageMagick library for iPhone development: https://github.com/marforic/imagemagick_lib_iphone It works quite well. The sample project compiles just fine, but doesn't make any sense whatsoever. Usually, I'll use the…
gotnull
  • 26,454
  • 22
  • 137
  • 203
1
vote
0 answers

How to exclude processing of certain tags in Magickwand stripimage

How to exclude processing of certain tags in Magickwand stripimage function in Go? https://pkg.go.dev/gopkg.in/gographics/imagick.v2/imagick#MagickWand.StripImage Need to exclude value of "Orientation" tag in Exif Metadata but erase another…
Cvalya
  • 123
  • 1
  • 1
  • 5
1
vote
0 answers

Huge filesize when making gif with python Wand

I'm trying to do a gif of liquid rescales with Wand, but when the gif is saved into a file the filesize is obscene huge, I mean, from a JPG image of 1539x2048 and 242 KB it yields a gif of 55 MB. Besides, when calling image.make_blob() it takes a…
1
vote
1 answer

Imagick pecl installation failed library not found

i'm having issues with imagick installation on my mac run on big sur with pecl installation. I did install imagemagick using brew with successful but got library not found after running sudo pecl install imagick. Here full error…
Norlihazmey Ghazali
  • 9,000
  • 1
  • 23
  • 40
1
vote
1 answer

How to pass magickWand reference to functions

May I know how to pass imagick.MagickWand struct to functions and apply it methods on it? It seems that the imagick.NewMagickWand return the type of *imagick.MagickWand, isn't it? I can't get it done, keep getting the error message: ERROR_WAND:…
Boo Yan Jiong
  • 2,491
  • 5
  • 17
  • 31
1
vote
1 answer

Wand: Image.composite turns bg-image black

I have a problem. The following code does work and it combines the two images. But the background-image in the final composing is completely black. Any guesses, what's the problem here? from wand.image import Image with Image(filename=bgimage) as…
daniel_e
  • 257
  • 1
  • 11
1
vote
1 answer

Is there a bug in MagickUnsharpMaskImage method for MagickWand C?

I have a below CLI and trying to achieve same result using magickwand c. Everything seems to be perfect or don't know may be I missed something but the MagickUnsharpMaskImage is not working for me. Check my source code. I also attached source and…
Rahul
  • 1,013
  • 1
  • 10
  • 24
1
vote
1 answer

How to get color arguments to pass for sparse-color?

I have been working to get most high saturation and bright colors. For that I have below command and the C program to get same result. convert one.jpg -alpha off -scale '50x50!' -depth 8 \ '(' -clone 0 -colorspace HSB -channel gb -separate +channel…
Rahul
  • 1,013
  • 1
  • 10
  • 24
1
vote
1 answer

How to combine images using MagickWand C API?

I have a two images And I want to combine them together, similar command for this is convert one.png two.png +clone -combine displaceMask.png. Below is my C Code. I'm not getting the perfect result using C. #include #include…
Rahul
  • 1,013
  • 1
  • 10
  • 24
1
vote
1 answer

MagickSetImageGravity is not working

I'm trying to recode below command into C. Everything seems to be fine except gravity. I don't know why it's not working. My original image is 2000x834. I also attached the original image and it's result of both images. 1. convert single_color.png…
Rahul
  • 1,013
  • 1
  • 10
  • 24
1
vote
1 answer

How to pass Parameters?

I have been converting convert rose.png -sparse-color barycentric '0,0 black 69,0 white roseModified.png into MagickWand C API. double arguments[6]; arguments[0] = 0.0; arguments[1] = 0.0; // arguments[2] = "black"; arguments[2] = 69.0; arguments[3]…
Rahul
  • 1,013
  • 1
  • 10
  • 24
1
vote
1 answer

Is there a options in Plane2Cylinder distort of imageMagick to make a Image like bellow?

When I used Plane2Cylinder distortion I got Image like below. But I want the effect like second image. Please go through my code. local nelem = 1 -- number of args local arg = ffi.new("const double[?]", nelem, {100}) -- local methos = ffi.new("const…
Rahul
  • 1,013
  • 1
  • 10
  • 24
1
vote
1 answer

Custom emboss using MagickWand C API

I want to achieve this Emboss effect using ImageMagick's C API. The script is from this page. I have achieved emboss for method 1 option but I'm looking to convert for method 2. Please look at the options in bash script. When I debug above script…
Rahul
  • 1,013
  • 1
  • 10
  • 24