Write image to a vector of bytes (in memory write)
cargo test passes
This commit is contained in:
13
README.md
13
README.md
@ -1,6 +1,6 @@
|
||||
# magick-rust
|
||||
|
||||
A "safe" Rust interface to the [ImageMagick](http://www.imagemagick.org/) system, in particular, the MagickWand library. The *safe* is in scarequotes because honestly nearly everything is little more than calls into a C library with `unsafe` wrapped around it.
|
||||
A "safe" Rust interface to the [ImageMagick](http://www.imagemagick.org/) system, in particular, the MagickWand library. The word *safe* is in scarequotes because, honestly, nearly everything is little more than a call into a C function with `unsafe` wrapped around it.
|
||||
|
||||
## TODO
|
||||
|
||||
@ -9,9 +9,18 @@ A "safe" Rust interface to the [ImageMagick](http://www.imagemagick.org/) system
|
||||
1. Develop Rustic wrappers to the MagickWand library.
|
||||
* Old Rust bindings: https://github.com/influenza/wand-of-rust
|
||||
* Wand API: http://www.imagemagick.org/script/magick-wand.php
|
||||
1. Write unit tests
|
||||
1. ~~Write unit tests~~
|
||||
1. Test it on lots of images in batches to stress test it; should not crash
|
||||
|
||||
## Build and Test
|
||||
|
||||
Pretty simple for now.
|
||||
|
||||
```
|
||||
$ cargo build
|
||||
$ cargo test
|
||||
```
|
||||
|
||||
## Generating Bindings
|
||||
|
||||
To generate the ImageMagick bindings, we use [rust-bindgen](https://github.com/crabtw/rust-bindgen), which reads the C header files and produces a suitable wrapper in Rust.
|
||||
|
||||
Reference in New Issue
Block a user