lua-imlib2 provides a mostly complete binding to the imlib2 image manipulation library. You will need this library installed in order to use lua-imlib2 (preferably a recent version). The API is fully documented.