Flatten file names in the terminal

I am often dealing with folders with lots of files with weird file names. Spaces, capital letters, and so on, often cause problems. Instead of manually fixing such file names, here is a quick one-liner (found here) that can be run in the terminal (at least on Ubuntu) to solve the problem: rename 'tr/ A-Z/-a-z/' -- * It is based on a simple regular expression, replacing any spaces with hyphens, and changing any capital letters to lower case....

March 1, 2021 · 1 min · 78 words · ARJ

Creating circular thumbnails in the terminal

Circular pictures (like the one to the right) has become increasingly popular on the web. We have, for example, included circular pictures in RITMO’s annual report, and we therefore also wanted to use circular pictures in a presentation at our upcoming LARGO conference. The question, then, is how to create such circular pictures? The circular pictures in the annual report are made through a CSS overlay. So if you try to right-click and save one of those, you will get the original rectangular version....

September 13, 2019 · 2 min · 415 words · ARJ