Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Saving an Image to the Camera Roll from a URL
-
I found a small piece of code posted on this forum to save an image from a url to the camera roll and it works very well. I added a small text manipulation of the URL and a notification below but I have one issue. The image saved to the camera roll has no EXIF metadata. Am I doing somthing wrong or is this not possible?
Thanks
import Image
import photos
import clipboard
import notification
import sys
import webbrowser
import console
import urllib
from urllib import urlopen
from io import BytesIOwebbrowser.open('drafts://')
dburl = clipboard.get()
url = dburl.replace('www', 'dl')img = Image.open(BytesIO(urlopen(url).read()))
photos.save_image(img)notification.schedule('Photo saved to camera roll', 1, 'default',)