Page 1 of 1

append command fail

Posted: 2018-02-05T18:15:35-07:00
by LockStock
Hi all.

I've been trying to append two very large gifs (~ 400 MB with 8,280 frames each) horizontally using `+append` like so:

Code: Select all

convert large1.gif large2.gif +append combined.gif
However it has been failing with the following error message:

Code: Select all

Assertion failed: (resource_info.file >= 0), function RelinquishMagickResource, file MagickCore/resource.c, line 1012.
Abort trap: 6
Any idea what the issue is and how it can be resolved?

Re: append command fail

Posted: 2018-02-05T18:48:56-07:00
by fmw42
Are these both animated gifs (i.e. multiple frames). If so, see https://www.imagemagick.org/Usage/anim_mods/#merging

What is your IM version and platform? Please always provide that information.

Re: append command fail

Posted: 2018-02-05T18:58:35-07:00
by snibgo
LockStock wrote:convert large1.gif large2.gif +append combined.gif
This command will read the 8280 frames from the first GIF, then the 8280 frames from the second GIF, then make one very very wide image from all 16560 frames appended side-by-side. Is that really what you want to do?

Re: append command fail

Posted: 2018-02-06T19:53:17-07:00
by LockStock
Thanks you both for your comments. Turns out I simply misunderstood the function of `+append`. Indeed I am trying to join two animated gifs. That link is perfect, I'll read the docs better next time. Cheers.