Problem with annotating animated gif's

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
sherz
Posts: 3
Joined: 2015-04-29T15:37:20-07:00
Authentication code: 6789

Problem with annotating animated gif's

Post by sherz »

Hey guys.
My code works perfect on some gifs and on some not...
Here is the code:

Code: Select all

exec("convert gif1.gif -coalesce \
          -background Black -splice 0x20 -gravity SouthEast -fill white -annotate +8+2 'test' \
          newgif1.gif");
gif1.gif (http://i.imgur.com/UeZn8B8.gif) works perfect and when i change to gif2.gif (http://i.imgur.com/xITMIEI.gif) code dont work anymore its just blank image like Image...
Anybody knows how to fix this?
Thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with annotating animated gif's

Post by snibgo »

Your command on your second gif ("Man, you are one twisted...") works fine for me, in IM v6.9.1-0.

It puts a black bar at the top. If you want it at the bottom, behind your added text, move "-gravity" to before "-splice".
snibgo's IM pages: im.snibgo.com
sherz
Posts: 3
Joined: 2015-04-29T15:37:20-07:00
Authentication code: 6789

Re: Problem with annotating animated gif's

Post by sherz »

What OS are you using?
I am using CentOS 7 64bit and it says that i am on lastest version..
Image

EDIT: When i use "ImageMagick-6.9.1-2.x86_64.rpm" from http://www.imagemagick.org/script/binary-releases.php i get this error's:

Code: Select all

error: Failed dependencies:
        ImageMagick-libs = 6.9.1-2 is needed by ImageMagick-6.9.1-2.x86_64
        libMagickCore-6.Q16.so.2()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        libMagickWand-6.Q16.so.2()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        libltdl.so.3()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        liblzma.so.0()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        ImageMagick = 6.7.8.9-10.el7 is needed by (installed) ImageMagick-devel-6.7.8.9-10.el7.x86_64
        ImageMagick = 6.7.8.9-10.el7 is needed by (installed) ImageMagick-perl-6.7.8.9-10.el7.x86_64
        libMagickCore.so.5()(64bit) is needed by (installed) ImageMagick-devel-6.7.8.9-10.el7.x86_64
        libMagickCore.so.5()(64bit) is needed by (installed) ImageMagick-perl-6.7.8.9-10.el7.x86_64
        libMagickWand.so.5()(64bit) is needed by (installed) ImageMagick-devel-6.7.8.9-10.el7.x86_64
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with annotating animated gif's

Post by snibgo »

I am on Windows 8.1. The current version is 6.9.1-2. See http://www.imagemagick.org/script/binary-releases.php

v6.7.8 is very old. I suggest you upgrade.
snibgo's IM pages: im.snibgo.com
sherz
Posts: 3
Joined: 2015-04-29T15:37:20-07:00
Authentication code: 6789

Re: Problem with annotating animated gif's

Post by sherz »

When i try to update i get this errors:

Code: Select all

error: Failed dependencies:
        ImageMagick-libs = 6.9.1-2 is needed by ImageMagick-6.9.1-2.x86_64
        libMagickCore-6.Q16.so.2()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        libMagickWand-6.Q16.so.2()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        libltdl.so.3()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        liblzma.so.0()(64bit) is needed by ImageMagick-6.9.1-2.x86_64
        ImageMagick = 6.7.8.9-10.el7 is needed by (installed) ImageMagick-devel-6.7.8.9-10.el7.x86_64
        ImageMagick = 6.7.8.9-10.el7 is needed by (installed) ImageMagick-perl-6.7.8.9-10.el7.x86_64
        libMagickCore.so.5()(64bit) is needed by (installed) ImageMagick-devel-6.7.8.9-10.el7.x86_64
        libMagickCore.so.5()(64bit) is needed by (installed) ImageMagick-perl-6.7.8.9-10.el7.x86_64
        libMagickWand.so.5()(64bit) is needed by (installed) ImageMagick-devel-6.7.8.9-10.el7.x86_64
CentOS 7 64bit
Post Reply