docs.rs failed to build mlua-image-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
mlua-image
Lua bindings for the image imaging library.
Installing
Add to your Rust project using one of MLua's features: [lua51, lua52, lua53, lua54, luajit, luajit52].
$ cargo add mlua-image --features luajit
Using
use Lua;
use mlua_image;
let lua = new;
preload?;
let script = r#"
local image = require('image')
local img = image.open('testdata/fractal.png')
img:save_with_format('fractal.gif', 'gif')
return img:height(), img:width()
"#;
let : = lua.load.eval?; // returns: (800, 800)
Testing
$ make check