ImageMagick Cheatsheet
Hi, my name is Tina! I am a Full Stack Software Developer and Tech Lead from Canada. 🙋🏻♀️
Search for a command to run...
Hi, my name is Tina! I am a Full Stack Software Developer and Tech Lead from Canada. 🙋🏻♀️
No comments yet. Be the first to comment.
Have you ever installed a package by using go install <some-package> and wondered how to uninstall it? Go is really great in that respect. Go packages are a single binary and they’re installed based on how your Go tooling is set up. Provided we have ...

Overview This is the 3rd article in a series of posts about working with Open API to create generated API clients and documentation websites. In the 1st post we went over what we can do with Open API spec files, e.g. generate API clients and documen...

Overview This article is the 2nd in a series of blog posts that discuss using Open API to help with API documentation and API client code generation. In the previous article, we went over how we can generate documentation and API clients using existi...

Overview This article starts a series of Open API-related blog posts. OpenAPI, previously known as Swagger (a name still in use today for many of its tools), is a suite of tools that generate documentation and networking clients for various programmi...

You've probably already seen the scary alert (that's possibly why you're here), but in case you haven't, it looks something like this: NewAppIJustDownloaded pasted from your clipboard Sometimes it h

An ImageMagick cheatsheet with some helpful commands for working with ImageMagick on the command line. This is a work in progress that will be periodically updated and is by no means a complete list.
Resize a single image:
convert input.png -resize 20x20 -quality 100 output.png
Batch resize some images:
mogrify -resize 600 *.png
For transparent PNG, you can add a background colour.
convert source.png -background '#ff3399' -flatten destination.png
Or overwrite all images in a directory:
mogrify -background 'dodgerblue' -flatten *.png
You can round the corners of an image with the following script:
convert input.png -alpha set -virtual-pixel transparent -channel A -blur 0x8 -threshold 50% +channel output.png
And you can batch round the corners of images using the following:
mogrify -alpha set -virtual-pixel transparent -channel A -blur 0x8 -threshold 50% +channel *.png