Optimizing JPG and PNG files for the web

I often post images on the web but I rarely think about optimizing the files properly before uploading. Here is a solution for how to do it programmatically in the terminal. Asking ChatGPT for help ChatGPT is great for some things, including suggesting program code for well-known problems. However, while it came up with something that worked right from the start, it took a few iterations to come up with a solution that does what I want....

July 5, 2024 · 4 min · 781 words · ARJ

Which image format should I use?

Many image file formats exist, but which ones are better for what task? Here is a quick overview in my little series of PhD advice blog posts (the previous being tips on dissertation writing and the public PhD defense). Two different image types When choosing a file format for your image, the first thing is to figure out whether you are dealing with a raster image (photos) or a vector image (line illustrations)....

September 26, 2023 · 4 min · 679 words · ARJ

Scripting image exports with LibreOffice Draw

As mentioned yesterday, the source files for the illustrations in my Sound Actions book are available on GitHub in the form of LibreOffice Draw files (ODG). Draw may be less powerful but much easier to work with than more advanced line art software, such as Inkscape. One of the nice things about the LibreOffice package is its scripting possibilities. While working on my book, I wrote a shell script that would read all the ODG files in a folder and convert them to PDF and PNG files:...

December 21, 2022 · 1 min · 210 words · ARJ