Forum Archive

Save local photo to camera roll?

donnieh

I have an image manually imported into my scripts main directory using the Pythonista photo import feature, myimage.gif. I have a button action where I want to save this to the camera roll. I just cannot figure out how to do this. Do I use the photos module to save it? If so, how?

cvp

Yes, use Photos module:

photos.save_image(image)
or
photos.create_image_asset(image_path)