Skip to content

Instantly share code, notes, and snippets.

@satoruhiga
Created July 11, 2011 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satoruhiga/1076569 to your computer and use it in GitHub Desktop.
Save satoruhiga/1076569 to your computer and use it in GitHub Desktop.
retina2normal.py
#!/usr/bin/env python
import os, sys
imgs = [x for x in os.listdir('.') if x.endswith('@2x.png')]
for i in imgs:
t = i.replace('@2x.png', '.png')
os.system("convert -resize 50%% %s %s" % (i, t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment