Structuring elements in Python
Posted 1st September 2022
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
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
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
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
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
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
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
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
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.
Display WordPress stories and images on a non-WordPress web page
Posted 20th June 2013
Step-by-step instructions for including WordPress blog content on non-WordPress static web pages. This method is ideal for advertising ‘latest stories’ on a static website where the article headline, excerpt, date and thumbnail image are to be displayed.