Page 1 of 1

Image manipulation library for Lua

PostPosted: Tue Feb 09, 2016 17:49
by Gael de Sailly
Some mods like RealTerrain need to manipulate images. The modders have to put a Lua library inside of the mod, and call minetest.require_insecure_environment, or implement a method for reading the bytes of the file. In both cases that's very hacky and buggy. So I think we need a proper imaging library.
Considering what MT's core does, I'm sure that it uses an image library, even if I've not read the code. Is that possible to share these functions with Lua ? The C++ can give many functions to the Lua environment. Why not providing the core's image library (or some C++ functions made from this library) ?