Skip to content

Instantly share code, notes, and snippets.

View rivenvirus's full-sized avatar

Santiago Pérez rivenvirus

  • Sorcode
  • Mérida Yucatán
View GitHub Profile
@rivenvirus
rivenvirus / jpg_to_2048.sh
Created March 22, 2017 05:39 — forked from knugie/jpg_to_2048.sh
resize and optimize JPEG images to box-fit 2048x2048 pixels with 80% JPEG quality
#! /usr/bin/env bash
# brew install imagemagick
# brew install jpegoptim
mkdir 2048
for image in *.jpg; do
convert $image -resize 2048x2048\> ./2048/$image
jpegoptim --strip-all -q --max=80 ./2048/$image
done