$ brew install imagemagick --with-libheif
# for single convert
$ magick convert [-monitor] <name>.HEIC <new-name>.png
# for batch convert
$ magick mogrify [-monitor] -format png *.HEIC.
#!/usr/bin/env sh
COLOR=yellow
sed -i -E 's/fill\="[^"]+"//g; s/stroke\="[^"]+"//g' *.svg
sed -i "s/<path/<path fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
or
#!/usr/bin/env sh
COLOR=yellow
sed -i -E 's/fill\="[^"]+"//g; s/stroke\="[^"]+"//g' *.svg
sed -i "s/<path/<path fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
sed -i "s/<rect/<rect fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
sed -i "s/<polygon/<polygon fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
sed -i "s/<circle/<circle fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
sed -i "s/<ellipse/<ellipse fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
sed -i "s/<polyline/<polyline fill=\"$COLOR\" stroke=\"$COLOR\"/g" *.svg
sed -i -E "s/stroke\:[^\;]+/stroke\:$COLOR/g" *.svg
sed -i -E "s/fill\:\#[0-9]+/fill\:$COLOR/g" *.svg
animation flow chart
create animation flow
[!NOTE|label:references:]
export to svg
convert svg to gif
online tools
[!NOTE|label:references:]
increase the SVG image height to make the watermark shows below of original image
local tools
others
$ man -t manpage | ps2pdf - filename.pdf
# https://www.commandlinefu.com/commands/view/9751/save-man-page-as-pdf
$ man -t awk | ps2pdf - awk.pdf
$ ifconfig | convert label:@- ip.png
# or: https://www.commandlinefu.com/commands/view/18168/save-command-output-to-image
$ convert label:"$(ifconfig)" output.png
# and more
$ ifconfig | convert -background none label:@- miff:- | composite -tile pattern:checkerboard - -compose Dst_Over ip.png
# and more with fonts: `convert -list font | grep Font:`
$ /usr/bin/lynx -dump -nolist http://www.commandlinefu.com/ | /usr/bin/convert -font "FreeMono-Medium" label:@- output.png
fps=10: filter sets the frame rate
scale=320:-1: resize the output to 320 pixels wide and automatically determine the height, the is used in this example.
split[s0][s1]: filter will allow everything to be done in one command and avoids having to create a temporary PNG file of the palette
[s0]palettegen[p];[s1][p]paletteuse: and filters will generate and use a custom palette generated from your input
-vf "fps=10,scale=320:-1:flags=lanczos" a using the and filters.
-delay: set frame rate with a combination of the filter in ffmpeg