Search found 6 matches

by bayek
2017-01-02T04:23:18-07:00
Forum: MagickWand
Topic: disable antialiasig for rotation and MagickAppendImages with overlapping
Replies: 9
Views: 20792

Re: disable antialiasig for rotation and MagickAppendImages with overlapping

MagickTransparentPaintImage changes nothing. But I found that if I use MagickTrue as the last parameter (invert) of the MagickTransparentPaintImage, it makes all the image transparent. So apparently it just does not think that color of the target matches color of the image which should be replaced. ...
by bayek
2017-01-02T03:32:40-07:00
Forum: MagickWand
Topic: disable antialiasig for rotation and MagickAppendImages with overlapping
Replies: 9
Views: 20792

Re: disable antialiasig for rotation and MagickAppendImages with overlapping

also I don't understand another thing MagickOpaquePaintImage MagickOpaquePaintImage() changes any pixel that matches color with the color defined by fill. MagickSetImageType(mwcombined, GrayscaleAlphaType); MagickWriteImage(mwcombined,"1.png"); pwwhite = NewPixelWand(); PixelSetColor(pwwhite,"white"...
by bayek
2017-01-02T01:00:22-07:00
Forum: MagickWand
Topic: disable antialiasig for rotation and MagickAppendImages with overlapping
Replies: 9
Views: 20792

Re: disable antialiasig for rotation and MagickAppendImages with overlapping

Yes you are right, smush just returns NULL, so the next line crashes.
The code looks like that:

Code: Select all

mwcombined = MagickSmushImages(mw, MagickFalse, 0.0);
MagickSetImageType(mwcombined, PaletteAlphaType);
by bayek
2017-01-01T16:32:20-07:00
Forum: MagickWand
Topic: disable antialiasig for rotation and MagickAppendImages with overlapping
Replies: 9
Views: 20792

Re: disable antialiasig for rotation and MagickAppendImages with overlapping

Linux gentoo x64, Imagemagick 7, built from github git clone http://git.imagemagick.org/repos/ImageMagick Version: ImageMagick 7.0.4-2 Q16 x86_64 2017-01-01 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Ciphe...
by bayek
2017-01-01T15:56:59-07:00
Forum: MagickWand
Topic: disable antialiasig for rotation and MagickAppendImages with overlapping
Replies: 9
Views: 20792

Re: disable antialiasig for rotation and MagickAppendImages with overlapping

smush crashes on the same wand append works with without errors, with "MagickWand/magick-image.c:10542: MagickSetImageType: Assertion `wand != (MagickWand *) NULL' failed."

Code: Select all

MagickAppendImages(mw, MagickFalse); //ok
//MagickSmushImages(mw, MagickFalse, 0.0); //crash
by bayek
2017-01-01T13:34:09-07:00
Forum: MagickWand
Topic: disable antialiasig for rotation and MagickAppendImages with overlapping
Replies: 9
Views: 20792

disable antialiasig for rotation and MagickAppendImages with overlapping

Hi, I have two questions 1. How can I disable antialiasing for MagickRotateImage(wand, background, degrees) ? The image contains thin black contours more suitable for vector format. Background pixel wand is transparent. Rotation with imagemagick adds antialiasing pixels around the contours. Is it po...