Again, the title says it all. can you help me how can i do that?
optimally i would need a way to allow the user to select a folder (file picker) and then i want to load all the images in that folder.
maybe it is easy, i hope so. yet i don't know how can i do it. i need it on android, btw, so although this topic
http://www.giderosmobile.com/forum/discussion/comment/4791 seems helpful, it does not help me. do we need a plugin for that? in case yes, did anybody do such or similar android plugin already?
thanks
Comments
It may well be possible with plugins, bypassing Gideros' own routines when loading images. I'm also hopeful that Gideros will change so it never needs to touch the sd version when displaying higher resolution artwork as that should make what you want to do easier.
As far as this thread below goes it looks like LuaFileSystem is integrated now so it should be possible to get directory listings etc:
http://www.giderosmobile.com/forum/discussion/1204/gideros-support-for-file-system-search
on the other hand the link you sent about file system search may be helpful. also, in wip the gideros guide i found an empty section "11.1.2 Downloading images" which is very similar to what i need, except that i want to load from a local folder and not from an url. so it is sad that that section is not yet written.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
basically the problem would be solved if we can do 'rendertotexture', because then we can manually save different resolution variants of a loaded image. this i would need anyway as i need to downscale a lot the loaded images, basically i need thumbnails of them only, which is impossible now. of course it is possible to downscale but it will definitely degrade performance if i put 60 3mb images on the screen with a very small scaling instead of putting only their lo-res thumbnails on the screen.
so rendertotexture is the solution as far as i see.
also i wrote a very simple example to get an image from a common directory on the sdcard and save it in the apps directory - using the lua and gideros documentations this is easy to do indeed, yet for a beginner as i am it may be useful.
ps: a simple luafilesystem example that can be extended to a file-picker:
Fragmenter - animated loop machine and IKONOMIKON - the memory game
If you want to use images with suffix like @2x or @4x, also the base image should be at the same folder. And I'm planning to lift this restriction according to @moopf's suggestion.
Likes: moopf
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Well, i'm thinking on adding that too. Also copy to clipboard, and such
Likes: keszegh, pie
Fragmenter - animated loop machine and IKONOMIKON - the memory game