Created
October 14, 2014 16:14
-
-
Save drdrang/97a2fe70df80f3c5221c to your computer and use it in GitHub Desktop.
Pythonista script for putting two screenshots side by side.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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