Hello,
Is it possible to retrieve the path for an image in the users photo library?
Then use the image path as the path for creating an imagesheet?
Thanks for reading. [import]uid: 100901 topic_id: 30303 reply_id: 330303[/import]
Hello,
Is it possible to retrieve the path for an image in the users photo library?
Then use the image path as the path for creating an imagesheet?
Thanks for reading. [import]uid: 100901 topic_id: 30303 reply_id: 330303[/import]
I doubt it. Apps are sandboxed and can only access relative paths to that sandbox or use an API to access other data. In other words, to see the camera roll and other albums in the photo library, Apple gives you a call that does the work for you and returns the photo to you. You don’t have direct access to the data of the photo app.
[import]uid: 19626 topic_id: 30303 reply_id: 121390[/import]
Thanks for the reply.
I am trying to make a puzzle from an image that a user loads from his own photos.
Kinda stuck on how to get the image in the puzzle in a nice memory friendly way.
I am using masks to mask out the puzzle pieces. So I need the source image twelve times.
In my non user based puzzle I use an imageSheet with one image in it to create the twelve replicas.
Any ideas on how I can reuse the image without overloading the memory?
[import]uid: 100901 topic_id: 30303 reply_id: 121391[/import]
What you could do is load the file in, save it to your system.TemporaryDirectory, and work on it from there.
[import]uid: 19626 topic_id: 30303 reply_id: 121420[/import]
Thanks, I was reading about the io in the docs but somehow I never thought of saving my screenshot as a temporary file too.
Thanks!
Hmmm wanted to add “Solved” to the title of the topic. Can’t edit my original post. Too bad. [import]uid: 100901 topic_id: 30303 reply_id: 121453[/import]
I doubt it. Apps are sandboxed and can only access relative paths to that sandbox or use an API to access other data. In other words, to see the camera roll and other albums in the photo library, Apple gives you a call that does the work for you and returns the photo to you. You don’t have direct access to the data of the photo app.
[import]uid: 19626 topic_id: 30303 reply_id: 121390[/import]
Thanks for the reply.
I am trying to make a puzzle from an image that a user loads from his own photos.
Kinda stuck on how to get the image in the puzzle in a nice memory friendly way.
I am using masks to mask out the puzzle pieces. So I need the source image twelve times.
In my non user based puzzle I use an imageSheet with one image in it to create the twelve replicas.
Any ideas on how I can reuse the image without overloading the memory?
[import]uid: 100901 topic_id: 30303 reply_id: 121391[/import]
What you could do is load the file in, save it to your system.TemporaryDirectory, and work on it from there.
[import]uid: 19626 topic_id: 30303 reply_id: 121420[/import]
Thanks, I was reading about the io in the docs but somehow I never thought of saving my screenshot as a temporary file too.
Thanks!
Hmmm wanted to add “Solved” to the title of the topic. Can’t edit my original post. Too bad. [import]uid: 100901 topic_id: 30303 reply_id: 121453[/import]