Commit Graph

69 Commits

Author SHA1 Message Date
Nikola Pajkovsky
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
Nikola Pajkovsky
415ad30bd0 add negate_image() operation
Signed-off-by: Nikola Pajkovsky <nikola.pajkovsky@livesporttv.cz>
2020-05-21 12:07:47 +02:00
Daniel Rönnkvist
8c8e0ce4ed feat: MagickSetImageAlpha 2020-04-24 14:06:46 +02:00
Nathan Fiedler
3d52a9d89d Merge pull request #64 from Storykit/feature/blur-image
feat: MagickBlurImage
2020-04-22 07:56:00 -07:00
Nathan Fiedler
fc76fa95d4 Merge pull request #63 from Storykit/feature/hald-clut
feat: hald clut image
2020-04-22 07:55:25 -07:00
Daniel Rönnkvist
cd590d0335 feat: MagickBlurImage
A faster alternative to gaussian blur
2020-04-22 16:13:04 +02:00
Daniel Rönnkvist
41a62dd221 feat: hald clut image 2020-04-22 15:13:15 +02:00
Daniel Rönnkvist
69020e40f7 Revert "feat: set_image_gray"
This reverts commit 517fd5ef5f.
2020-04-22 08:42:10 +02:00
Nathan Fiedler
fefc89387d Merge pull request #61 from Storykit/feature/levels
feat: level image binding
2020-04-21 06:49:41 -07:00
Nathan Fiedler
f6d0f27aaf Merge pull request #60 from Storykit/feature/fx
feat: MagickFxImage bindning
2020-04-21 06:49:28 -07:00
Daniel Rönnkvist
fa563b8fb6 docs: describe the quantomrange use in level_image 2020-04-21 09:09:59 +02:00
Daniel Rönnkvist
36c145d4c4 fix: black and white point should be set relative to quantum range 2020-04-21 08:34:13 +02:00
Daniel Rönnkvist
5c5015a10e Bindings for MagickLevelImage 2020-04-21 08:34:13 +02:00
Daniel Rönnkvist
a277b7cfe7 feat: MagickFxImage bindning
New macro to create a new wand from another wand.
2020-04-21 08:32:18 +02:00
Daniel Rönnkvist
517fd5ef5f feat: set_image_gray 2020-04-21 08:29:34 +02:00
Daniel Rönnkvist
97d620beb8 Binding for MagickClutImage 2020-03-25 14:29:52 +01:00
Daniel Rönnkvist
7d805d9a83 Binding for MagickSetSize 2020-03-25 14:26:41 +01:00
42
fe9b6f805d Add gaussian blur function 2020-01-07 20:53:10 +02:00
Atul Bhosale
f286c631b9 Format code using 'cargo fmt' 2019-08-17 21:48:01 +05:30
Magic Len
089e6fcb90 Binding for set_background_color 2019-05-29 15:03:17 +08:00
Nathan Fiedler
122f144ecb Made exception related functions public
cargo test passes
2019-04-17 20:15:48 -07:00
Nathan Fiedler
07c4971b66 Fix the clippy warnings
cargo test passes
2019-02-01 20:00:29 -08:00
Nathan Fiedler
bd34f145a2 Ran cargo fmt on the code base, looks better
cargo test passes
2018-10-06 15:38:33 -07:00
Nathan Fiedler
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
Nathan Fiedler
336606f121 Merge pull request #45 from magiclen/feature/set_sampling_factors
Binding for set_sampling_factors
2018-08-12 17:33:39 -07:00
Magic Len
b190cc787a Binding for set_sampling_factors 2018-08-12 23:28:32 +08:00
Magic Len
fd8f5e49a2 Binding for set_image_background_color 2018-08-12 23:05:45 +08:00
Magic Len
be0c6f5914 Binding for sharpen_image 2018-08-12 22:45:19 +08:00
Nat Quayle Nelson
a10b98a790 Binding for adaptive_resize_image 2018-05-25 19:32:45 -04:00
Nat Quayle Nelson
f694737ac5 Revert "Making self mutable"
This reverts commit 15a2fd7d1a.
2018-05-25 16:51:23 -04:00
Nat Quayle Nelson
15a2fd7d1a Making self mutable 2018-05-25 16:49:38 -04:00
Nat Quayle Nelson
3daa8e77e8 adding docs & rotate_image 2018-05-25 16:39:59 -04:00
Nat Quayle Nelson
ccda94221f Adding binding for MagickAddImage 2018-05-25 16:00:40 -04:00
Błażej Święcicki
88ceb3a4af Add set_image_alpha_channel function 2018-05-18 13:51:50 +00:00
Błażej Święcicki
631725121a Add reset_image_page function. 2018-05-18 13:51:50 +00:00
Błażej Święcicki
b47d2e64c5 Add ping_image and ping_image_blob functions. 2018-05-18 13:51:50 +00:00
Błażej Święcicki
1f4a586426 More MagickWand functions wrapped. 2018-03-29 11:12:09 +02:00
Błażej Święcicki
7b4cca3956 MagickCropImage returns a result, and so should crop_image 2018-03-29 11:12:09 +02:00
Błażej Święcicki
07dd10f9cb Fix memory management in string_get! 2018-03-29 11:12:09 +02:00
Sindre Ilebekk Johansen
d5fe6f95cf Fix exporting pdf->jpeg for multi-page pdf
When trying to convert a multi-page pdf to jpeg i got a pdf file
instead of a jpeg file. I figured that the pdf that worked was
a one-page pdf and the pdf that did not work was a two-page pdf.

My theory was that the two pages was loaded as to images in the
wand and that the format was set on the first page and it exported
the second page. And since the second page had the old format, it
was exported as a pdf.

Resetting the page iterator before exporting the image fixed the
bug, and the multi-page pdf was exported as a jpeg. The image that
was exported was just the first page, but it works for my usage.
2018-03-27 15:47:54 +02:00
Sindre Johansen
f397e65634 Add crop_image to MagickWand 2018-02-14 12:44:00 +01:00
little-bobby-tables
f2b153c987 add color-related getters and mutations 2018-01-03 17:04:45 +07:00
Nathan Fiedler
06f1a4352a Merge branch 'magick-7' 2017-08-26 13:14:51 -07:00
little-bobby-tables
f6c55ba836 add get_image_page to MagickWand
get_image_page (MagickGetImagePage) is especially useful
for determining the overall dimensions of a GIF, which may have
frames with different widths and heights. In such cases,
get_image_width and get_image_height report the dimensions of
the last frame only.
2017-08-23 19:37:38 +07:00
Nathan Fiedler
2d63b00b1f Fix typo in doc comment 2017-08-19 17:45:06 -07:00
little-bobby-tables
7abde0e7c6 resolve initial compilation issues 2017-08-19 16:35:58 +07:00
gentoo90
c50b3e27de Add compare_images method 2017-05-16 16:43:08 +03:00
Nathan Fiedler
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
Nathan Fiedler
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
Nathan Fiedler
2c94dab05a Add license header to contributed files 2016-08-14 18:46:03 -07:00