Name: batch-resize-images
Owner: ABC News
Description: Batch resize images to fit a certain ratio & min-width
Created: 2018-01-15 08:07:33.0
Updated: 2018-01-15 10:52:11.0
Pushed: 2018-01-15 08:17:12.0
Homepage: null
Size: 444
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Bash script to resize images to a particular ratio, with a blurred background where the image is not in the same ratio.
By default this converts to 3x2 ratio, with a min-width ot 700 px.
Run on a single file with:
.sh <filename>
Run recursively finding all .jpgs in a folder with:
_in_folder.sh <folder>
The original source image is resized to fit inside the 3x2 frame
Both wide and tall images are supported by this script
Tiny source images will be scaled up 150% so they're legible on mobile, but remain centered in the overall image.
The background blur effect means the colour and theme is continued throughout the image