1

Some images are displayed in a circular frame after uploading. For example, GitLab project icons:

The swag suggestions image is displayed in a circular frame

When tweaking an image on the desktop, I don't really know how it will look in a circular frame before I upload. For example, some elements might get cut off and I'll have to re-adjust the canvas size and try again.

How can I quickly preview a circle-cropped version of an image on the desktop?

lofidevops
  • 3,159

1 Answers1

5

You can use ImageMagick. Using something like the following example, you can create a circle cropped image.

convert original_image.png \
    \( +clone -threshold -1 -negate -fill white -draw "circle 64,64 64,0" \) \
    -alpha off -compose copy_opacity \
    -composite circle_image.gif

Please refer to How to make a image in desired shape in imagemagick? in ImageMagick forum for details.

andcoz
  • 17,130