This is a simple Bash function that will (should?) turn any @2x image into a non-retina version.
Place the contents of deretinize.sh
in your .bashrc
, .bash_profile
, or any other file that will get executed when you load your shell. Then,
$ deretinize xyz@2x.png
This will output a file named xyz.png
in the same directory. If the original image has odd dimensions, the script will resize it appropriately.