####################################################### #!/bin/bash convert -size 100x80 xc:none \ -strokewidth 1 -stroke '#DE7F7C' -fill none \ -draw "rectangle 0,0 70,62" \ -fill '#DE7F7C' -stroke none \ -draw "polyline 40,10 40,50 10,30 40,10" \ -draw "polyline 60,10 60,50 30,30 60,10" \ -fill '#DE7F7C' \ -draw "rectangle 6,10 10,50" \ -resize 30% -trim +repage +antialias -colors 3 out.png ####################################################### $ identify -format %k out.png 120