Search found 1017 matches

by el_supremo
2013-02-05T07:27:20-07:00
Forum: Developers
Topic: Error I'm getting with MagickCore but not MagickWand
Replies: 17
Views: 14356

Re: Error I'm getting with MagickCore but not MagickWand

There are probably more efficient ways to do this, but one way to determine the coordinates of the blue area would be to scan the rows/columns using MagickGetImagePixelColor(image,x,y,pw). It retrieves the pixel at (x,y) and puts its colour in the PixelWand pw. The first blue pixel you find with thi...
by el_supremo
2013-01-31T14:33:18-07:00
Forum: Developers
Topic: Error I'm getting with MagickCore but not MagickWand
Replies: 17
Views: 14356

Re: Error I'm getting with MagickCore but not MagickWand

I have more or less replicated the compare command (code below) but it doesn't output exactly the difference image that you show. It has some extra blue speckles around the main blob. Pete #include <windows.h> #include <wand/magick_wand.h> void test_wand(LPTSTR lpCmdLine) { MagickWand *img1 = NULL,*...
by el_supremo
2013-01-31T07:45:03-07:00
Forum: Developers
Topic: Error I'm getting with MagickCore but not MagickWand
Replies: 17
Views: 14356

Re: Error I'm getting with MagickCore but not MagickWand

Most core operations are available in MagickWand. This code should emulate your convert command. Pete #include <windows.h> #include <wand/magick_wand.h> void test_wand(LPTSTR lpCmdLine) { MagickWand *mw = NULL; double cpoints[16] = { 0,0,0,0, 250,0,250,0, 0,200,50,200, 250,200,200,200 }; MagickWandG...
by el_supremo
2013-01-30T16:14:44-07:00
Forum: Developers
Topic: Error I'm getting with MagickCore but not MagickWand
Replies: 17
Views: 14356

Re: Error I'm getting with MagickCore but not MagickWand

I'm using 6.7.5 Q16 and it doesn't work for me either.
I can't figure out what is wrong. There don't seem to be any changes to the IM code that would have affected it.

Pete
by el_supremo
2013-01-30T08:15:22-07:00
Forum: Developers
Topic: Error I'm getting with MagickCore but not MagickWand
Replies: 17
Views: 14356

Re: Error I'm getting with MagickCore but not MagickWand

You need to clone a separate ImageInfo for writing. See my example code
http://members.shaw.ca/el.supremo/Magic ... ckCore.htm

Pete
by el_supremo
2013-01-19T17:06:28-07:00
Forum: MagickWand
Topic: Convertation SVG to PNG with transparency
Replies: 3
Views: 11591

Re: Convertation SVG to PNG with transparency

Those two do not look equivalent. In the one that works, you set background colour to transparent and then read the image. In the one that doesn't work, you read the image first and then use MagickSetImageBackgroundColor (which is not the same as MagickSetBackgroundColor). Try this: //Wrong result $...
by el_supremo
2013-01-10T14:41:01-07:00
Forum: MagickWand
Topic: Emulating convert -crop using MagickWand
Replies: 3
Views: 8484

Re: Emulating convert -crop using MagickWand

I think this function will do what you want: % MagickGetImageRegion() extracts a region of the image and returns it as a % a new wand. % % The format of the MagickGetImageRegion method is: % % MagickWand *MagickGetImageRegion(MagickWand *wand, % const size_t width,const size_t height,const ssize_t x...
by el_supremo
2012-12-19T09:10:11-07:00
Forum: MagickWand
Topic: MagickWand equivalent of -channel RGBA
Replies: 6
Views: 11180

Re: MagickWand equivalent of -channel RGBA

Don't know if this will work but try:

Code: Select all

MagickSetBackgroundColor(image, color);
instead of MagickSetImageBackgroundColor.

Pete
P.S. I see you've just got a solution. Try this anyway :-)
by el_supremo
2012-12-18T13:27:22-07:00
Forum: MagickWand
Topic: MagickWand equivalent of -channel RGBA
Replies: 6
Views: 11180

Re: MagickWand equivalent of -channel RGBA

I think that the MagickWand equivalent is:

Code: Select all

MagickSetOption(magick_wand,"channel","RGBA")
Pete
by el_supremo
2012-12-06T19:33:15-07:00
Forum: Users
Topic: multiplication in the fourier domain
Replies: 10
Views: 8527

Re: multiplication in the fourier domain

I can't try that command right now but try replacing the first line with this:

Code: Select all

convert \( circle.png -roll -64-64 -fft \) \
Pete
by el_supremo
2012-11-26T08:01:21-07:00
Forum: Users
Topic: SetPixelRed problem?!
Replies: 4
Views: 4059

Re: SetPixelRed problem?!

If you save the image as a JPG, the lossy compression will change the colours of the pixels slightly.

Pete
by el_supremo
2012-11-06T08:17:27-07:00
Forum: Users
Topic: convert Problems under Windows 7
Replies: 3
Views: 6743

Re: convert Problems under Windows 7

That doesn't mean that the script is finding the same one. The error message you get about an invalid parameter "-resize" is exactly the message that is produced by the Windows convert program.
Try renaming the IM convert anyway.

Pete
by el_supremo
2012-11-05T08:31:54-07:00
Forum: Users
Topic: convert Problems under Windows 7
Replies: 3
Views: 6743

Re: convert Problems under Windows 7

Windows might be finding the system "convert.exe" command instead of the one for Imagemagick. Try changing the IM convert.exe to magick.exe and change it in the script as well.

Pete
by el_supremo
2012-11-04T13:37:40-07:00
Forum: Developers
Topic: ImageMagick VC++ 12 - getting an error I don't understand.
Replies: 11
Views: 16652

Re: ImageMagick VC++ 12 - getting an error I don't understan

This page has some examples and links:
http://stackoverflow.com/questions/4151 ... ual-studio
My MSVC 2010 has /W3 on by default. If yours does too then all you need to do is add this at the top of your code:

Code: Select all

#pragma warning(default : 4005)
Pete