Skip to content

Instantly share code, notes, and snippets.

@drdrang
Created October 14, 2014 16:14
Show Gist options
  • Save drdrang/97a2fe70df80f3c5221c to your computer and use it in GitHub Desktop.
Save drdrang/97a2fe70df80f3c5221c to your computer and use it in GitHub Desktop.
Pythonista script for putting two screenshots side by side.
import Image
import photos, speech, console
speech.say('left image?', '', .18)
s1 = photos.pick_image()
speech.say('right image?', '', .18)
s2 = photos.pick_image()
w = s1.size[0] + s2.size[0] + 60
h = max(s1.size[1], s2.size[1]) + 40
ss = Image.new('RGB', (w,h), '#888')
ss.paste(s1, (20, (h - s1.size[1])/2))
ss.paste(s2, (s1.size[0] + 40, (h - s2.size[1])/2))
console.clear()
ss.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment