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: 8
Joined: 2018-02-05T18:08:29-07:00
Authentication code: 1152

append command fail

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: append command fail

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: append command fail

Post 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?
snibgo's IM pages: im.snibgo.com
LockStock
Posts: 8
Joined: 2018-02-05T18:08:29-07:00
Authentication code: 1152

Re: append command fail

Post 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.
Post Reply