Search found 1015 matches

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

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: 13022

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: 6136

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: 4185

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: 11435

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: 6981

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: 9644

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: 21376

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: 13073

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: 11405

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: 12596

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: 9375

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
by el_supremo
2012-05-09T08:01:19-07:00
Forum: MagickWand
Topic: irregular channel geometry error/missing image channel
Replies: 13
Views: 29374

Re: irregular channel geometry error/missing image channel

I've converted a couple of jp2 files to png without any errors. Can you post a link to one of the jp2 files which fails?

Pete
by el_supremo
2012-05-04T13:40:36-07:00
Forum: MagickWand
Topic: "irregular channel geometry" error joining files
Replies: 5
Views: 14136

Re: "irregular channel geometry" error joining files

Give this a try: #include <windows.h> #include <wand/MagickWand.h> void test_wand(void) { MagickWand *mw = NULL,*mwa; MagickWandGenesis(); mw = NewMagickWand(); MagickReadImage(mw,"logo:"); MagickReadImage(mw,"logo:"); MagickResetIterator(mw); // Append the second image to the bottom (MagickTrue) of...