append command fail

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
LockStock
Posts: 4
Joined: 2018-02-05T18:08:29-07:00
Authentication code: 1152

append command fail

Post by LockStock » 2018-02-05T18:15:35-07:00

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?

User avatar
fmw42
Posts: 23054
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: append command fail

Post by fmw42 » 2018-02-05T18:48:56-07:00

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.

snibgo
Posts: 10144
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: append command fail

Post by snibgo » 2018-02-05T18:58:35-07:00

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?
snibgo's IM pages: im.snibgo.com

LockStock
Posts: 4
Joined: 2018-02-05T18:08:29-07:00
Authentication code: 1152

Re: append command fail

Post by LockStock » 2018-02-06T19:53:17-07:00

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.

Post Reply