Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create image of side by side screeshots
This code takes two screenshots from the camera roll combines them into one image and saves the new image to the camera roll.
This is adapted from Federico Viticci's blog post at:
It removes the option to change which picture is where, automatically assigning the first one chosen as the leftmost image.
It also removes the necessity to copy the images to the clipboard outside of Pythonista using the new photos library in version 1.3. Finally, it removes the clipboard output.
import photos
import Image
import console
im1 = photos.pick_image(show_albums=False)
im2 = photos.pick_image(show_albums=False)
background ='RGBA', (746,650), (255, 255, 255, 255))
print "Generating image..."
_1 = im1.resize((366,650),Image.ANTIALIAS)
_2 = im2.resize((366,650),Image.ANTIALIAS)
print "Image saved to camera roll."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.