Presenting new module - Corona Image Downloader

Hi,

I would like to present my new Corona module used for downloading image resources on device based on display.imageSuffix. 

Repository: https://github.com/promptcode/CoronaImageDownloader

It is still in beta so I hope you can help me make it better :slight_smile:

I’m currently testing it on a project that contains more than 150 images with 4 supported resolutions =  cca 600 images. This results in a 70 MB APK. Using this module I have a 16 MB APK, but the images download takes a while. I will move images to a non-free (better) web host and let you now how long it takes then. If you have any ideas on how to reduce download time please let me know.

To use this module you will need a web server and a PHP script used for sending information about number of images and their paths to Corona module. You can find a working example and other info about module properties and customization on Github. Here is a short example of how to use imageDownloader in your main.lua:

[lua]


– SETUP IMAGE DOWNLOADER MODULE

– Requires a db connection and a path to your imageDownloader.php


local id = require(“imageDownloader”)

id:set(db, “http://citybusvz.comze.com/corona/imageDownloader.php”)

– Start downloading images

id:downloadImages()

[/lua]

Daniel