Runs sips -s format jpeg -s formatOptions high -Z 500 "$img" --out $new_img
for every image in the directory.
This repository contains my go-to image conversion scripts to resize images for my websites with the MacOS library, sips.
It is meant to take large, oversized screenshots and turns them into web-appropriate files.
Read my Medium post about sips here.
This is the main script that batch converts and resizes jpg
, png
, and gif
files.
The files are currently being converted to 500px jpegs, but support for formatting options will be added.
This is an idempotent test that runs resize.sh
after copying the sample images. This is meant to be run from the root dir.
This folder contains test images