Search found 1015 matches
- 2013-02-05T07:27:20-07:00
- Forum: Developers
- Topic: Error I'm getting with MagickCore but not MagickWand
- Replies: 17
- Views: 28591
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...
- 2013-01-31T14:33:18-07:00
- Forum: Developers
- Topic: Error I'm getting with MagickCore but not MagickWand
- Replies: 17
- Views: 28591
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,*...
- 2013-01-31T07:45:03-07:00
- Forum: Developers
- Topic: Error I'm getting with MagickCore but not MagickWand
- Replies: 17
- Views: 28591
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...
- 2013-01-30T16:14:44-07:00
- Forum: Developers
- Topic: Error I'm getting with MagickCore but not MagickWand
- Replies: 17
- Views: 28591
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
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
- 2013-01-30T08:15:22-07:00
- Forum: Developers
- Topic: Error I'm getting with MagickCore but not MagickWand
- Replies: 17
- Views: 28591
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
http://members.shaw.ca/el.supremo/Magic ... ckCore.htm
Pete
- 2013-01-19T17:06:28-07:00
- Forum: MagickWand
- Topic: Convertation SVG to PNG with transparency
- Replies: 3
- Views: 21076
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 $...
- 2013-01-10T14:41:01-07:00
- Forum: MagickWand
- Topic: Emulating convert -crop using MagickWand
- Replies: 3
- Views: 15958
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...
- 2012-12-19T09:10:11-07:00
- Forum: MagickWand
- Topic: MagickWand equivalent of -channel RGBA
- Replies: 6
- Views: 22108
Re: MagickWand equivalent of -channel RGBA
Don't know if this will work but try:
instead of MagickSetImageBackgroundColor.
Pete
P.S. I see you've just got a solution. Try this anyway
Code: Select all
MagickSetBackgroundColor(image, color);
Pete
P.S. I see you've just got a solution. Try this anyway
- 2012-12-18T13:27:22-07:00
- Forum: MagickWand
- Topic: MagickWand equivalent of -channel RGBA
- Replies: 6
- Views: 22108
Re: MagickWand equivalent of -channel RGBA
I think that the MagickWand equivalent is:
Pete
Code: Select all
MagickSetOption(magick_wand,"channel","RGBA")
- 2012-12-06T19:33:15-07:00
- Forum: Users
- Topic: multiplication in the fourier domain
- Replies: 10
- Views: 15034
Re: multiplication in the fourier domain
I can't try that command right now but try replacing the first line with this:
Pete
Code: Select all
convert \( circle.png -roll -64-64 -fft \) \
- 2012-11-26T08:01:21-07:00
- Forum: Users
- Topic: SetPixelRed problem?!
- Replies: 4
- Views: 7336
Re: SetPixelRed problem?!
If you save the image as a JPG, the lossy compression will change the colours of the pixels slightly.
Pete
Pete
- 2012-11-13T08:34:00-07:00
- Forum: MagickWand
- Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
- Replies: 18
- Views: 94307
Re: Creating a Cleared Frame GIF Animation in the MagickWand
Done. Thanks.
Pete
Pete
- 2012-11-06T08:17:27-07:00
- Forum: Users
- Topic: convert Problems under Windows 7
- Replies: 3
- Views: 10690
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
Try renaming the IM convert anyway.
Pete
- 2012-11-05T08:31:54-07:00
- Forum: Users
- Topic: convert Problems under Windows 7
- Replies: 3
- Views: 10690
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
Pete
- 2012-11-03T12:27:47-07:00
- Forum: Users
- Topic: please help with fx
- Replies: 5
- Views: 9203
Re: please help with fx
Try (r*r + g*g + b*b). A multiply is sometimes faster than using **.
Pete
Pete