Bubble Button or Cut Off Corners ?
Posted: 2018-07-22T23:13:49-07:00
Does anyone know how to achieve this in C#/.NET from https://www.imagemagick.org/Usage/thumbnails
Bubble Button
convert thumbnail.gif -fill gray50 -colorize 100% \
-raise 8 -normalize -blur 0x8 bubble_overlay.png
convert thumbnail.gif bubble_overlay.png \
-compose hardlight -composite bubble_button.png
Or...
https://www.imagemagick.org/Usage/thumb ... cutoff.png - https://www.imagemagick.org/Usage/thumbnails
convert thumbnail.gif -alpha set -compose DstOut \
\( -size 20x15 xc:none -draw "polygon 0,0 0,14 19,0" \
-write mpr:triangle +delete \) \
\( mpr:triangle \) -gravity northwest -composite \
\( mpr:triangle -flip \) -gravity southwest -composite \
\( mpr:triangle -flop \) -gravity northeast -composite \
\( mpr:triangle -rotate 180 \) -gravity southeast -composite \
corner_cutoff.png
Bubble Button
convert thumbnail.gif -fill gray50 -colorize 100% \
-raise 8 -normalize -blur 0x8 bubble_overlay.png
convert thumbnail.gif bubble_overlay.png \
-compose hardlight -composite bubble_button.png
Or...
https://www.imagemagick.org/Usage/thumb ... cutoff.png - https://www.imagemagick.org/Usage/thumbnails
convert thumbnail.gif -alpha set -compose DstOut \
\( -size 20x15 xc:none -draw "polygon 0,0 0,14 19,0" \
-write mpr:triangle +delete \) \
\( mpr:triangle \) -gravity northwest -composite \
\( mpr:triangle -flip \) -gravity southwest -composite \
\( mpr:triangle -flop \) -gravity northeast -composite \
\( mpr:triangle -rotate 180 \) -gravity southeast -composite \
corner_cutoff.png