Search found 1015 matches

by el_supremo
2017-05-09T10:57:30-07:00
Forum: MagickWand
Topic: Equivalent of -colors 2.
Replies: 12
Views: 85703

Re: Equivalent of -colors 2.

I've just installed V7. NoDitherMethod doesn't work and the tree depth needs to be 1 instead of 0.

Code: Select all

	MagickQuantizeImage(m_wand,2,GRAYColorspace,1,FloydSteinbergDitherMethod,MagickFalse);
Pete
by el_supremo
2017-05-09T09:47:23-07:00
Forum: MagickWand
Topic: Equivalent of -colors 2.
Replies: 12
Views: 85703

Re: Equivalent of -colors 2.

This works with V6.9.7-10: MagickSetSize(m_wand,20,640); MagickReadImage(m_wand,"gradient:white-black"); MagickRotateImage(m_wand, PW1,90); // In V7 the 5th argument is a DitherMethod rather than a boolean - try NoDitherMethod MagickQuantizeImage(m_wand,2,GRAYColorspace,0,MagickTrue,Magick...
by el_supremo
2017-05-05T09:28:59-07:00
Forum: MagickWand
Topic: Morphology in MagickWand.
Replies: 6
Views: 66901

Re: Morphology in MagickWand.

I forgot to note that the code I wrote used IM version 6.9.7. It appears that the code you are using is IM v7 - I need to get around to upgrading! In V7 the signature is: KernelInfo *AcquireKernelInfo(const char *kernel_string, ExceptionInfo *exception) but in V6 it is: KernelInfo *AcquireKernelInfo...
by el_supremo
2017-05-02T12:11:15-07:00
Forum: MagickWand
Topic: Morphology in MagickWand.
Replies: 6
Views: 66901

Re: Morphology in MagickWand.

I've replicated one of Anthony's morphology examples using MagickWand. #ifdef MORPHOLOGY_1 // https://www.imagemagick.org/discourse-server/viewtopic.php?f=6&t=31863 // Try one of Anthony's morphology examples first: // convert man.gif -morphology Erode Octagon erode_man.gif #include <windows.h> ...
by el_supremo
2017-04-24T16:40:14-07:00
Forum: MagickWand
Topic: MagickWand C API equivalent to below command.
Replies: 6
Views: 30527

Re: MagickWand C API equivalent to below command.

If you output the command line result to a PNG, it has a transparent background. Even so, it seems to be a very complicated command which seems to just invert the black and white in cnbc_i.jpg, make the black transparent and replace the white area with the pattern in cnbc_p.jpg. Is it supposed to do...
by el_supremo
2017-04-21T10:29:33-07:00
Forum: MagickWand
Topic: Tile or montage in MagickWand
Replies: 6
Views: 27077

Re: Tile or montage in MagickWand

P.S. I compiled the example with ImageMagick 6.9.7-10 Q16 x64.

Pete
by el_supremo
2017-04-21T09:50:25-07:00
Forum: MagickWand
Topic: Tile or montage in MagickWand
Replies: 6
Views: 27077

Re: Tile or montage in MagickWand

Got it working with this code: #include <windows.h> #include <stdio.h> #include <string.h> #include <wand/magick_wand.h> void test_wand(void) { MagickWand *wand, *texture_wand, *output_wand; MagickWandGenesis(); wand = NewMagickWand(); MagickSetSize(wand,1200,874); MagickReadImage(wand,"xc:whit...
by el_supremo
2017-04-21T09:19:45-07:00
Forum: MagickWand
Topic: Tile or montage in MagickWand
Replies: 6
Views: 27077

Re: Tile or montage in MagickWand

Try MagickTextureImage: % MagickTextureImage() repeatedly tiles the texture image across and down the % image canvas. % % The format of the MagickTextureImage method is: % % MagickWand *MagickTextureImage(MagickWand *wand, % const MagickWand *texture_wand) % % A description of each parameter follows...
by el_supremo
2017-04-03T09:26:43-07:00
Forum: Bugs
Topic: Outdated link to examples in the MagickWand documentation.
Replies: 3
Views: 13273

Re: Outdated link to examples in the MagickWand documentation.

Good idea. I'll look into it.
Thanks

Pete
by el_supremo
2017-04-02T16:02:34-07:00
Forum: Bugs
Topic: Bug in PNG coder?
Replies: 2
Views: 6452

Re: Bug in PNG coder?

Hmmmm. It just occurred to me to wonder if it is PSP that isn't displaying it properly and lo and behold, MagicViewer displays it with transparency but PSP Pro X9 doesn't. Weird. Apparently it's nothing to do with the PNG coder in IM. It's the PNG decoder in PSP! Thanks for making me look outside th...
by el_supremo
2017-04-02T15:00:59-07:00
Forum: Bugs
Topic: Bug in PNG coder?
Replies: 2
Views: 6452

Bug in PNG coder?

I've been trying to get my MagickWand Examples in C up to date. Most of the examples work fine (in V6.9.7) but a couple related to transparency give oddball results. Fortunately, I can demonstrate the problem with the command line. This command should change all the white pixels to be transparent, i...
by el_supremo
2017-03-30T18:52:39-07:00
Forum: Bugs
Topic: Bug in MagickEvaluateImages
Replies: 0
Views: 13125

Bug in MagickEvaluateImages

I'm using IM 6.9.7-10 on Windows 10 Pro x64 and ran into a problem with MagickEvaluateImages in which it was crashing with a simple test program. I eventually tracked it down to the fact that I had forgotten to call MagickResetIterator after reading in the images and before calling MagickEvaluateIma...
by el_supremo
2017-03-29T12:38:28-07:00
Forum: Bugs
Topic: Outdated link to examples in the MagickWand documentation.
Replies: 3
Views: 13273

Re: Outdated link to examples in the MagickWand documentation.

Hi, That's my stuff. As it says, my ISP has closed down the (free) webspace part of their service. I have saved all the files but do not have an alternate website to display the MagickWand examples. For now, I have archived the whole directory into a zip file which can be downloaded from [https://ww...
by el_supremo
2016-03-25T19:38:25-07:00
Forum: MagickWand
Topic: MagickWand and -mean-shift
Replies: 1
Views: 11072

Re: MagickWand and -mean-shift

As of version 6.9.3-7 of ImageMagick, the MeanShiftImage function has not been implemented within MagickWand.
But even if it had, you would still have a problem because it would not have been implemented in FreePascal which appears to use a very old version of IM from 2005.

Pete
by el_supremo
2016-03-25T19:35:34-07:00
Forum: MagickWand
Topic: MagickCompareImages: NCC metric not availabe
Replies: 2
Views: 14246

Re: MagickCompareImages: NCC metric not availabe

I've had a quick look at the source code for the ImageMagick package in FPC 3.0.0. The list of metrics in compare.inc are precisely those that you obtained from the API list. The copyright at the top of that file is: Copyright 1999-2005 ImageMagick Studio LLC. It's likely that in 2005 those were the...