For anyone who's looking to do combine images into an animated GIF using Python3/Wand/ImageMagick, here is the code I'm using:
import sys
from wand.image import Image
from wand.api import library
def main(filenames):
with Image() as gif:
print(f"Adding {len(filenames)} frames...")
for ...
Search found 6 matches
- 2018-04-27T13:49:50-07:00
- Forum: MagickWand
- Topic: [SOLVED] MagickSetOption(wand, "loop" , "1") is not working
- Replies: 9
- Views: 147156
- 2018-04-27T13:43:42-07:00
- Forum: MagickWand
- Topic: [SOLVED] MagickSetOption(wand, "loop" , "1") is not working
- Replies: 9
- Views: 147156
Re: MagickSetOption(wand, "loop" , "1") is not working
Excellent! This is working for me both in my C program and my Python program (I was able to get Wand working with ImageMagick 7).
I confirmed that setting the iterations on the first image also works:
MagickSetIteratorIndex(wand, 0);
MagickSetImageIterations(wand, 1);
Though I can't imaging ...
I confirmed that setting the iterations on the first image also works:
MagickSetIteratorIndex(wand, 0);
MagickSetImageIterations(wand, 1);
Though I can't imaging ...
- 2018-04-27T07:46:27-07:00
- Forum: MagickWand
- Topic: [SOLVED] MagickSetOption(wand, "loop" , "1") is not working
- Replies: 9
- Views: 147156
Re: MagickSetOption(wand, "loop" , "1") is not working
I was using IM v6.9.6-8 (because the Python library, Wand, has not been updated to support 7), so I installed IM v7.0.7-28. I'm still not seeing MagickSetImageIterations take effect. I'm on macOS, building with homebrew, and viewing the GIF in Firefox v59.0.2 as well.
Here's my latest code ...
Here's my latest code ...
- 2018-04-27T03:52:42-07:00
- Forum: MagickWand
- Topic: [SOLVED] MagickSetOption(wand, "loop" , "1") is not working
- Replies: 9
- Views: 147156
Re: MagickSetOption(wand, "loop" , "1") is not working
I added MagickSetImageIterations to both my test program and the "bunny" example program, but unfortunately there's no change to either GIF.
I added printf("%lu\n", MagickGetImageIterations(aw)); after the MagickSetImageIterations line, and confirmed that iterations are set to 1, but the GIFs still ...
I added printf("%lu\n", MagickGetImageIterations(aw)); after the MagickSetImageIterations line, and confirmed that iterations are set to 1, but the GIFs still ...
- 2018-04-26T14:39:04-07:00
- Forum: MagickWand
- Topic: [SOLVED] MagickSetOption(wand, "loop" , "1") is not working
- Replies: 9
- Views: 147156
Re: MagickSetOption(wand, "loop" , "1") is not working
I just tried taking the bunny.c example (https://www.imagemagick.org/MagickWand/bunny.htm) and changing to , but it is generating a looped GIF still.
Code: Select all
MagickSetOption(aw,"loop","0");
Code: Select all
MagickSetOption(aw,"loop","1");
- 2018-04-26T14:09:08-07:00
- Forum: MagickWand
- Topic: [SOLVED] MagickSetOption(wand, "loop" , "1") is not working
- Replies: 9
- Views: 147156
[SOLVED] MagickSetOption(wand, "loop" , "1") is not working
I'm working on a project and need to combine a directory of PNGs into an animated GIF. So far my code is working fine, except none of the MagickSetOption calls seem to be taking any effect. I wrote a very basic C program (my full project is in Python, using Wand to interface with MagickWand) to read ...