Skip to content

Instantly share code, notes, and snippets.

@minisu
Last active March 15, 2025 10:41
Show Gist options
  • Save minisu/1fdf630d05d5f4e1e5f14b0fdd66c96d to your computer and use it in GitHub Desktop.
Save minisu/1fdf630d05d5f4e1e5f14b0fdd66c96d to your computer and use it in GitHub Desktop.
Widen images by pillarboxing
# Converts 4:3 photos to 16:9.
# Useful in order to make smart phone photos look good on a TV (such as in Samsung Ambient mode).
# Requires ImageMagick to be installed.
for f in ./*.jpg ; do magick "$f" -gravity center -background black -extent 133x100% "${f%.jpg}-wide.jpg" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment