Webmaster4o
Jun 28, 2015 - 18:44
Can I have a script generate a PIL Image, then open the standard iOS Share menu so the image can be opened in another app?
Can I have a script generate a PIL Image, then open the standard iOS Share menu so the image can be opened in another app?
You can use the Open in… menu like this:
import Image
import console
img = Image.new('RGB', (100, 100), 'green')
img.save('image.png')
console.open_in('image.png')
Hmm.... This crashes pythonista for me. Running on iPad mini 2
It's actually the save line that causes the crash.
It's a problem with PNGs. JPEGs work fine.
PNG images work fine for me in the latest beta. Perhaps a 1.5 bug fixed in 1.6?
@Gerzer maybe.
@omz can I display a dialog that is the share dialog? The one that includes mail, message, save image, and open in? At a higher level than "open in"