How to make transparent GIFs more easily sharable by adding a checkerboard background

I’m currently taking part in the "#hARToween" daily art challenge, as I want to work on my pixelart skills and drawing a 128x128px pixel drawing each day1 for a month seemed like a good idea. You can follow my posts in this thread. I’m using Aseprite, and recently came across the “record for aseprite” script for it that allows taking regular snapshots of what I’m currently drawing so a timelapse can be created from that. And that works nicely, but I had to realize that the timelapse would come with transparency until I came to the background during my drawing, which looked really weird when sharing the resulting GIF. ...

October 15, 2024 · 2 min

How to trim screenshots via the commandline

I just had to trim a bunch of screenshots that had some black borders around them. I didn’t want to do this manually or via a GUI, but ideally batch-able via the commandline. Thankfully, that’s one of the many things that ImageMagick can do for you. I put all my screenshot PNGs into a folder, and then in that folder ran this mogrify command: magick mogrify -trim -define trim:percent-background=0% -background black -path output/ *.png I found that I had to add the -define trim:percent-background=0% option to get rid of all black borders, as otherwise on some of the images a very slim one ended up remaining. I also specified the background color with -background black to make sure that it really only trimmed the black borders. ...

February 9, 2023 · 1 min
Mastodon