Skip to content

Instantly share code, notes, and snippets.

@7kfpun
Created June 12, 2016 14:50
Show Gist options
  • Save 7kfpun/41d4fda1f9486cb79e9ca5f72ce05a5b to your computer and use it in GitHub Desktop.
Save 7kfpun/41d4fda1f9486cb79e9ca5f72ce05a5b to your computer and use it in GitHub Desktop.
Round corners of an image with ImageMagick
convert -size 512x512 xc:none -draw "roundrectangle 0,0,512,512,40,40" png:- | convert src.png -matte - -compose DstIn -composite dst.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment