Watermark opacity and animated gif

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
n0_namer
Posts: 5
Joined: 2017-02-03T09:44:24-07:00
Authentication code: 1151

Watermark opacity and animated gif

Post by n0_namer »

Hello.

I'm newbie in IM. I'm using this script in order to place watermark.png on animated gif. (Windows 10 x64 and IM 7.0.4-Q16)

Code: Select all

set INDIR=d:\
set OUTDIR=d:\LOGO

for /F "usebackq" %%F in (`dir /b %INDIR%\*.gif`) do (
  magick "%INDIR%\%%F" -gravity SouthEast null: watermark.png -layers composite "%OUTDIR%\%%~nxF"
  
  rem del /Q "%INDIR%\%%F"
)
Is there any way to change watermark.png opacity? I was trying to use -watermark 30%%, but got "unrecognized option "-watermark"" error. Thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Watermark opacity and animated gif

Post by snibgo »

Instead of ...

Code: Select all

watermark.png
... you can have something like:

Code: Select all

( watermark.png -alpha set -channel A -evaluate multiply 0.3 +channel )
snibgo's IM pages: im.snibgo.com
n0_namer
Posts: 5
Joined: 2017-02-03T09:44:24-07:00
Authentication code: 1151

Re: Watermark opacity and animated gif

Post by n0_namer »

Thank you very much, snibgo.
snibgo wrote: 2017-02-03T10:55:11-07:00 Instead of ...

Code: Select all

watermark.png
... you can have something like:

Code: Select all

( watermark.png -alpha set -channel A -evaluate multiply 0.3 +channel )
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Watermark opacity and animated gif

Post by snibgo »

I've removed a duplicate post, and moved the topic to Users,
snibgo's IM pages: im.snibgo.com
Post Reply