Search found 1017 matches

by el_supremo
2012-11-03T12:27:47-07:00
Forum: Users
Topic: please help with fx
Replies: 5
Views: 4902

Re: please help with fx

Try (r*r + g*g + b*b). A multiply is sometimes faster than using **.

Pete
by el_supremo
2012-11-02T08:31:02-07:00
Forum: Developers
Topic: ImageMagick VC++ 12 - getting an error I don't understand.
Replies: 11
Views: 16591

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

Line 87 of xkeycheck.h might hold a clue.

Pete
by el_supremo
2012-09-10T08:55:51-07:00
Forum: Bugs
Topic: Problems with magickwand examples in branch 6.7
Replies: 12
Views: 11474

Re: Problems with magickwand examples in branch 6.7

I tried the affine example and it does indeed produce the leaky pixels. It also slightly reduces the size of the wizard and the colours are darker in all four images. I'm using IM 6.7.5 Q16. I'll try the other example when I get around to installing the latest IM. @magick if you want to try it, the ...
by el_supremo
2012-09-09T15:57:50-07:00
Forum: Bugs
Topic: Problems with magickwand examples in branch 6.7
Replies: 12
Views: 11474

Re: Problems with magickwand examples in branch 6.7

I'll try to have a look at this in the next day or so.

Pete
by el_supremo
2012-08-16T07:17:29-07:00
Forum: Developers
Topic: How to use distort function of ImageMagick.?
Replies: 3
Views: 5130

Re: How to use distort function of ImageMagick.?

My MagickWand examples in C (link is below in my sig) has examples of using MagickDistortImage in the affine transformation example and in the text effects example. It isn't C++ but it should help you with the arguments for the distort method.

Pete
by el_supremo
2012-07-29T12:23:15-07:00
Forum: Users
Topic: MagickDeskewImage background color
Replies: 2
Views: 3333

Re: MagickDeskewImage background color

Try setting the background colour before the deskew.

Pete
by el_supremo
2012-07-18T12:00:53-07:00
Forum: MagickWand
Topic: making image transitions programmatically,how to ?
Replies: 4
Views: 10039

Re: making image transitions programmatically,how to ?

For the command line, see Anthony's examples of Colour and Resize Morphing at:
http://www.imagemagick.org/Usage/anim_mods/#morph

For the MagickWand API, see http://www.imagemagick.org/api/magick-i ... orphImages

Pete
by el_supremo
2012-07-08T09:11:54-07:00
Forum: MagickWand
Topic: Small memory leaks when resizing gifs with MagickWand
Replies: 1
Views: 6042

Re: Small memory leaks when resizing gifs with MagickWand

The only thing I can suggest is to try replacing each occurrence of ClearMagickWand(w) with
DestroyMagickWand(w);
w = NewMagickWand();

to see if it makes any difference.

Pete
by el_supremo
2012-07-07T18:43:35-07:00
Forum: Magick++
Topic: adding alpha channel
Replies: 3
Views: 8606

Re: adding alpha channel

This is a fragment of some code I wrote in C which uses MagickWand. It creates a blank 6000x1000 image and then turns on the alpha channel. Perhaps you can find the equivalent of MagickSetImageAlphaChannel in Magick++. mw = NewMagickWand(); MagickSetSize(mw,6000,1000); MagickReadImage(mw,"xc:none");...
by el_supremo
2012-06-28T07:41:41-07:00
Forum: Users
Topic: Detect corrupt images with the C API
Replies: 12
Views: 18739

Re: Detect corrupt images with the C API

I tried your code in 6.7.5-10 and it reads the jpg without throwing an exception. Both Firefox and Paint Shop Pro X4 open the JPG without complaint. However, they don't display exactly the same image. OTOH, Corel Instant Viewer also opens the image but then hangs. Does, perhaps, the JPG standard hav...
by el_supremo
2012-06-27T15:57:08-07:00
Forum: MagickWand
Topic: how to get the real error string from MagickReadImage
Replies: 4
Views: 11417

Re: how to get the real error string from MagickReadImage

Add this piece of code. char error_string[256]; char *description; ExceptionType severity; description=MagickGetException(mw,&severity); FormatLocaleString(error_string,250,"%s %s %lu %s\n",GetMagickModule(),description); description=(char *) MagickRelinquishMemory(description); // Display the error...
by el_supremo
2012-06-07T09:24:29-07:00
Forum: MagickWand
Topic: How to find text length in pixels?
Replies: 2
Views: 9805

Re: How to find text length in pixels?

The MagickQueryFontMetrics(mw, dw, text) function returns metric information for the given text string from which you can compute where the strings should be placed.
See my fontmetrics example.

Pete
by el_supremo
2012-05-17T08:49:16-07:00
Forum: MagickWand
Topic: Distort ARC MagickWand PHP
Replies: 3
Views: 11113

Re: Distort ARC MagickWand PHP

Have a look at my "Eight text effects in one function" in http://members.shaw.ca/el.supremo/MagickWand/. The third effect uses arc distortion. It's in C, but it should be easy convert to PHP.

Pete
by el_supremo
2012-05-10T17:31:44-07:00
Forum: Users
Topic: [Newbie] MagickWand, ClipPath and dynamic image...
Replies: 5
Views: 8309

Re: [Newbie] MagickWand, ClipPath and dynamic image...

Thanks for the reference Anthony.
Unfortunately, the only example I have uses a clip mask not a clip path.
There is a program called drawtest.c in the MagickWand directory of the svn code which sets a clipping path but I haven't tried it out yet to see how it works.

Pete