Search found 1015 matches

by el_supremo
2012-03-28T14:59:10-07:00
Forum: MagickWand
Topic: Converting image to Grayscale
Replies: 4
Views: 21779

Re: Converting image to Grayscale

I haven't tried this yet but I think it will work:

Code: Select all

status = MagickSetColorspace(image_wand,GRAYColorspace);
Pete
by el_supremo
2012-03-17T07:43:12-07:00
Forum: MagickWand
Topic: New Functions for MagickWand?
Replies: 2
Views: 12735

Re: New Functions for MagickWand?

I assume you can create a new wand, set the iterator in the source wand to the required index and then use MagickGetImage.

Code: Select all

tw = NewMagickWand();
MagickSetIteratorIndex(mw,i);
tw = MagickGetImage(mw);
Pete
by el_supremo
2012-03-15T19:58:42-07:00
Forum: MagickWand
Topic: MagickWand IMv6 testing....
Replies: 5
Views: 20190

Re: MagickWand IMv6 testing....

Yup, got it now.

Pete
by el_supremo
2012-03-15T07:53:21-07:00
Forum: MagickWand
Topic: MagickWand IMv6 testing....
Replies: 5
Views: 20190

Re: MagickWand IMv6 testing....

Anthony, the URL for your test programs is a dead link.

Pete
by el_supremo
2012-03-09T19:59:21-07:00
Forum: Users
Topic: Display image from command line
Replies: 5
Views: 17622

Re: Display image from command line

FYI. I tried "convert logo: -resize 50% show:" on Win7 x64 command line and it shows the resulting image with Windows Photo Viewer.

Pete
by el_supremo
2012-03-08T17:31:19-07:00
Forum: MagickWand
Topic: MagickSetOption(wand, "loop", "1") has no effect
Replies: 5
Views: 24367

Re: MagickSetOption(wand, "loop", "1") has no effect

I used the command line to try to set loop to one in the "bunny" animation and it doesn't work either. I don't know if that is just the player program ignoring the setting or whether IM isn't actually doing anything.

Pete
by el_supremo
2012-03-08T13:58:05-07:00
Forum: MagickWand
Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
Replies: 18
Views: 93876

Re: Creating a Cleared Frame GIF Animation in the MagickWand

Is there any other official MagickWand way to delete a frame at a specific index Not that I know of. rather than loop through the entire image sequence and copy out every frame except 0? Seems kind of silly/overhead The underlying images are in a doubly-linked list so it would seem to be much easie...
by el_supremo
2012-03-08T10:19:42-07:00
Forum: MagickWand
Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
Replies: 18
Views: 93876

Re: Creating a Cleared Frame GIF Animation in the MagickWand

I've reworked my previous code so that it does not use MagickCore and it uses CompareImageLayers instead of Deconstruct.
The latest iteration of the code is in my MagickWand examples at:
http://members.shaw.ca/el.supremo/MagickWand/bunny.htm

Pete
by el_supremo
2012-03-08T08:47:15-07:00
Forum: MagickWand
Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
Replies: 18
Views: 93876

Re: Creating a Cleared Frame GIF Animation in the MagickWand

Typical way of deleting images, is to destroy the old wand In this case we don't want to destroy all the images in the wand - only remove the first one. I'll have a look at doing it by iterating over the images and copying all but the first into a new wand. To fix up the use of Deconstruct change t...
by el_supremo
2012-03-08T07:45:59-07:00
Forum: MagickWand
Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
Replies: 18
Views: 93876

Re: Creating a Cleared Frame GIF Animation in the MagickWand

I should have mentioned that I am using Version 6.7.3-3 Q16 which is a bit behind the times.

@Anthony: The "MagickCLI Wand" sounds very interesting. Looking forward to seeing it.

Pete
by el_supremo
2012-03-07T17:10:34-07:00
Forum: MagickWand
Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
Replies: 18
Views: 93876

Re: Creating a Cleared Frame GIF Animation in the MagickWand

It wasn't quite as tricky as I thought. Here's the example with coalesce and deconstruct. I had to use a MagickCore to get at the DeleteImages function. @ Magick: Can a MagickWand version of DeleteImages be included in a new release - or have I missed (or forgotten) how to do this in MagickWand? Pet...
by el_supremo
2012-03-07T16:22:05-07:00
Forum: MagickWand
Topic: Creating a Cleared Frame GIF Animation in the MagickWand API
Replies: 18
Views: 93876

Re: Creating a Cleared Frame GIF Animation in the MagickWand

I've worked out how to do the first stage of Anthony's example. Perhaps this will give you a head start on the rest of it. I'll post again if/when I figure out the -coalesce and -deconstruct. Pete // This implements the command: // convert bunny_grass.gif bunny_anim.gif -loop 0 bunny_on_grass.gif //...
by el_supremo
2012-03-01T13:38:18-07:00
Forum: Users
Topic: resize.bat DOS script corrupts mogrify resize %
Replies: 2
Views: 6203

Re: resize.bat DOS script corrupts mogrify resize %

Have you tried 50%% ?

Pete
by el_supremo
2012-03-01T13:33:40-07:00
Forum: Users
Topic: DOS Script with Wildcards (% error) help.
Replies: 4
Views: 9620

Re: DOS Script with Wildcards (% error) help.

It would appear that it is the "call' that is causing the problem although I don't know why. Try this:

Code: Select all

for %%a in ("*.png") do convert %%a -transparent none -resize 50%% PNG32:%%a
Pete
by el_supremo
2012-03-01T08:48:09-07:00
Forum: Users
Topic: DOS Script with Wildcards (% error) help.
Replies: 4
Views: 9620

Re: DOS Script with Wildcards (% error) help.

You have to double the percent - 50%%

Pete