Image manipulation library for Lua

User avatar
Gael de Sailly
Member
 
Posts: 475
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Image manipulation library for Lua

by Gael de Sailly » Tue Feb 09, 2016 17:49

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) ?
Very busy this year too, so do not expect me to be very active on the forum or in game. But I'm not about to drop Minetest forever :)
 

Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 9 guests

cron