3d4782390d
Move to exception
2024-05-14 13:52:29 +03:00
02ae78eba8
Replace size_t with usize in the API
2024-05-11 13:18:47 +03:00
8c9899a4e0
Add GravityType type
2024-05-09 21:58:30 +03:00
4b32edb17e
Add FilterType type
2024-05-09 21:48:39 +03:00
cfbdbd4c0e
Add DitherMethod type
2024-05-09 21:42:51 +03:00
e419039647
Add ColorspaceType type
2024-05-09 21:36:09 +03:00
d6c617ebce
Add MetricType type
2024-05-09 21:04:39 +03:00
53fb3069ed
Add types module
...
Move `CompositeOperator` and `ResourceType` to the `types` module
2024-05-09 21:00:07 +03:00
3b0377d94a
Add compositeOperator type
2023-11-16 21:43:26 +03:00
409a583b22
feat: std error compatible error
2021-12-25 02:49:43 +08:00
51b2cac594
remove use of deprecated item 'try': use the ? operator instead
...
Signed-off-by: Nikola Pajkovsky <nikola.pajkovsky@livesporttv.cz >
2020-05-21 12:11:15 +02:00
07c4971b66
Fix the clippy warnings
...
cargo test passes
2019-02-01 20:00:29 -08:00
bd34f145a2
Ran cargo fmt on the code base, looks better
...
cargo test passes
2018-10-06 15:38:33 -07:00
8a4fced836
Update to latest release of bindgen
...
Note that all of the enum definitions changed (again?), and now they are
flattened into the 'bindings' namespace. This breaks the API in a way that
is relatively easy to fix, albeit annoying. Attempts to change the enum
generation using default_enum_style() resulted in endless compiler errors.
cargo test passes
2018-10-06 15:37:41 -07:00
1f4a586426
More MagickWand functions wrapped.
2018-03-29 11:12:09 +02:00
f2b153c987
add color-related getters and mutations
2018-01-03 17:04:45 +07:00
c50b3e27de
Add compare_images method
2017-05-16 16:43:08 +03:00
e7054d3e35
Use the rust-bindgen crate properly
...
Using the changes from @gadomski along with some additional work, to get the
generated bindings working again. Works on macOS and FreeBSD 11. A couple of
hacks are needed for FreeBSD, but nothing too serious.
Changed to use the libc prefix, and changed to use the generated enums.
Fixes #22 , #15 , and #14
cargo test passes
2017-04-08 16:03:58 -07:00
eec7998d25
Use new rust-bindgen crate for faster builds
...
Rather than cloning the bindgen repository and building from source, use
the packaged crate. The result is the rebuilds are much, much faster.
Also, had to make numerous changes for the new version of bindgen.
cargo test passes
2016-08-14 21:23:05 -07:00
9d2eba64a3
use size_t and ssize_t types for cross-compilation
2016-05-16 19:03:45 +03:00
9e2285a4aa
add drawing and pixel wands; add some methods to MagickWand
2016-05-11 22:12:42 +03:00
4c7cebe628
move MagickWand to wand/magick.rs and filters to filters.rs
2016-05-11 17:03:53 +03:00
85a4b97b70
place generated files in OUT_DIR
2016-05-11 16:52:15 +03:00
faebc468ba
Detect and correct non-optimal image orientation
...
cargo test passes
2016-03-29 18:28:33 -07:00
7bc3f274d2
Fix image property accessor to copy C string
...
cargo test passes
2016-01-02 19:57:39 -08:00
19377db422
Add get_image_property() to retrieve properties
...
cargo test passes
2016-01-02 14:31:20 -08:00
0cc8073a48
Upgrade to libc 0.2.4
2015-12-26 20:02:32 -08:00
5e091bf488
Add a fit function to resize an image
...
Given a bounding box defined by the desired width and height, resize the
image to fit that box, maintaining the aspect ratio.
cargo test passes
2015-06-10 21:27:58 -07:00
56877aaad3
Write image to a vector of bytes (in memory write)
...
cargo test passes
2015-06-09 22:18:57 -07:00
78d681608d
Read image data from a vector of bytes
...
cargo test passes
2015-06-09 06:57:56 -07:00
1781b39863
Basic API in place, some tests working
...
Reading an image, getting its dimensions, and resizing are working.
cargo test passes
2015-06-08 21:47:17 -07:00
ed91ab75d0
Initial generated bindings and basic API
2015-06-06 21:30:42 -07:00