Build a Docker container image
Posted 25th November 2024
No comments
Linux containers are a way to build a self-contained environment that includes software, libraries, and other tools. They’re immensely useful and this guide describes my method for creating them.
Structuring elements in Python
Posted 1st September 2022
1 comment
Some simple methods to generate structuring elements as part of an image morphology pipeline in Python.
Convert RGB to CMYK in Python
Posted 26th March 2021
1 comment
Efficient Python code for taking a RGB image and converting it to CMYK before splitting the relevant channels out.
Reading EXIF data in Python
Posted 2nd February 2021
2 comments
In order to review the properties of various common-format image files, I wrote a command-prompt script in Python that will display EXIF data and other properties of JPG, PNG, TIF, CR2 and NEF files.
Serving WebP with fallback
Posted 5th November 2020
No comments
Two methods to serve WebP images with a fallback for instances where a browser/OS combination doesn’t support it.
SVG not displaying in Chrome browser
Posted 31st August 2020
No comments
A simple solution for a situation when a SVG fails to display in Google Chrome but works in other browsers.
Rotate or flip multiple image files using PowerShell
Posted 4th March 2016
4 comments
Use a PowerShell script in Microsoft Windows to rotate or flip large numbers of images automatically.
Batch save images into a new format via PowerShell
Posted 18th December 2015
5 comments
Use a PowerShell script to copy all images in a directory and save them into a different image file format.
Script to list image files by size and resolution, export to Excel
Posted 24th September 2014
9 comments
Instructions for using PowerShell to export a list of images and their properties to Excel as a tab-delimited CSV.
Responsive images made easy
Posted 17th January 2014
3 comments
In this era of ‘Responsive Web Design’ where websites need to function well on smartphones and tablets as well as desktop computers, finding a solution for a website’s images can be tricky.