How to add a watermark to gifs and maximum compression it by imagemagick?

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
shoubiao
Posts: 2
Joined: 2015-05-03T04:13:39-07:00
Authentication code: 6789

How to add a watermark to gifs and maximum compression it by imagemagick?

Post by shoubiao »

Now the method I use is:

Code: Select all

convert input.gif -coalesce -gravity SouthWest -geometry + 0 + 0 null: watermark.png -layers composite -layers optimize output.gif
But it does not compress gifs, I use Ulead gif add a watermark to the same picture was found after export gifs size even smaller than the original,How to add a watermark to gifs and maximum compression it by imagemagick?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to add a watermark to gifs and maximum compression it by imagemagick?

Post by snibgo »

Don't put spaces in the geometry argument.

Code: Select all

-geometry +0+0
Please say what version IM and what platform. If your IM is old, an upgrade might help.

The watermark may create many more colours, making compression more difficult.

If that doesn't help, please post example inputs that show the problem.
snibgo's IM pages: im.snibgo.com
shoubiao
Posts: 2
Joined: 2015-05-03T04:13:39-07:00
Authentication code: 6789

Re: How to add a watermark to gifs and maximum compression it by imagemagick?

Post by shoubiao »

Thanks,the IM version is 6.9.1 and the platform is windows,I am using this script :viewtopic.php?t=25731

The original gifs is :http://ww2.sinaimg.cn/large/85d79bcbjw1 ... 07ihdw.gif

The original Watermark is :http://i.imgur.com/ghdqFeK.png

I use Ulead gif add this watermark to gifs,the same position,IM output gifs size is 4.80M,
Ulead gif output gifs size is 4.43M,do you know the parameters Ulead gif output probably is?
Post Reply