Commit Graph

332 Commits

Author SHA1 Message Date
David Wilemski cf7db8e39a Add binding for MagickStripImage
Per the API docs, this should strip all profiles and comments attached
to the image. This can be useful for removing identifying information
from an image (e.g. EXIF tags).
2022-01-16 23:22:05 -06:00
David Wilemski 48dc7b06c4 Update ImageMagick version compatibility in README
The MagickKmeansImage function appears to have been added in ImageMagick 7.0.10-36.
if you try to build against an earlier version, you'll get a compilation
error about the bindings not having such a function.
2022-01-16 22:49:27 -06:00
Nathan Fiedler 63dc05aece Merge pull request #87 from DCjanus/master
feat: std error compatible error
2021-12-24 11:53:52 -08:00
DCjanus 409a583b22 feat: std error compatible error 2021-12-25 02:49:43 +08:00
Nathan Fiedler 679ccc43fa Merge pull request #85 from DCjanus/master
Add some methods
2021-12-24 09:32:09 -08:00
DCjanus dcb6046f5b add some methods 2021-12-24 19:37:20 +08:00
Nathan Fiedler 2e843d7336 test: fix compiler warning about dyn Error 2021-10-09 06:53:57 -07:00
Nathan Fiedler fd004cc15e chore: update CHANGELOG 2021-10-09 06:53:44 -07:00
Nathan Fiedler 5a7a2a5dce Merge pull request #84 from walterbm/thumbnail-resize
Add support for "thumbnail" image resizing
2021-10-09 06:44:51 -07:00
walter f8685e8531 add simple thumbnail resize test 2021-10-08 13:45:46 -04:00
walter 734a545847 add support for thumbnail image resizing 2021-10-08 13:45:26 -04:00
Nathan Fiedler cd50e1c578 doc: add help and work-around for HDRI issue 2021-09-29 09:00:18 -07:00
Nathan Fiedler 32f854cd6f Prepare for the 0.15.0 release 2021-08-10 06:35:56 -07:00
Nathan Fiedler cfd9849604 docker: copy to avoid local host dependency 2021-08-03 19:00:19 -07:00
Nathan Fiedler aae7b562ef chore: update bindgen dependency to latest 2021-08-03 18:59:55 -07:00
Nathan Fiedler 8f9526e5ae chore: update dependencies and bindgen usage
cargo test passes
2021-06-28 18:27:27 -07:00
Nathan Fiedler fe415039b1 Merge pull request #82 from brownjohnf/allow-imagemagick-7-1
Update imagemmagick checks to support 7.1
2021-06-28 18:26:12 -07:00
Jack Brown c65027800d Update imagemmagick checks to support 7.1
On Arch Linux, imagemagick is currently at 7.1.0. I tried increasing the
max version and the version used in the Dockerfile to 7.1 and it appears
to compile and tests pass. Version used for local testing:

```
Linux 5.12.12-arch1-1 #1 SMP PREEMPT Fri, 18 Jun 2021 21:59:22 +0000 x86_64 GNU/Linux

Version: ImageMagick 7.1.0-1 Q16 x86_64 2021-06-21 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raqm raw rsvg tiff webp wmf x xml zip zlib
```
2021-06-28 14:14:35 -07:00
Nathan Fiedler 40f8c58b5b Merge pull request #80 from glebpom/resource-limits
Support setting resource limits
2021-04-11 06:53:44 -07:00
Gleb Pomykalov a14b44974d support resource limits 2021-04-10 12:36:40 +03:00
Nathan Fiedler 9422825322 fix: in Rust 1.51 panic! takes only string literals
Seems that Rust 2021 will require that panic! macro takes only a string
literal, so format! and variables are out.

cargo test passes
2021-03-27 11:22:50 -07:00
Nathan Fiedler 348dd1fd21 Merge pull request #78 from liyunde/master
fix path_separator on windows can not build
2021-03-11 13:48:03 -08:00
liyunde 480421aa65 fix path_separator on windows can not build 2021-03-11 14:25:32 +08:00
Nathan Fiedler 82778e69f5 chore: fix the ImageMagick URL for docker container build 2021-01-23 09:38:46 -08:00
Nathan Fiedler aba1a324f4 Merge pull request #76 from kz6wk9/master
Required version bump on bindgen.
2021-01-23 09:36:46 -08:00
fabio h e8170defca Required version bump on bindgen.
More info: https://github.com/rust-lang/rust-bindgen/pull/1826.
2021-01-23 10:23:00 -03:00
Nathan Fiedler 7d233633a9 Merge pull request #75 from lerouxrgd/feature/kmeans
Add kmeans
2020-12-20 18:06:32 -08:00
Romain Leroux 9f70ef94fa Add kmeans 2020-12-21 01:58:41 +01:00
Nathan Fiedler 48d57f94a0 Merge pull request #73 from Storykit/feat/modulate-image
feat: modulate image
2020-10-19 08:41:21 -07:00
Daniel Rönnkvist 65903434cd feat: modulate image 2020-10-16 15:57:57 +02:00
Nathan Fiedler 4aae82022e Merge pull request #71 from asonix/asonix/fix-build
Add quantum depth, fixes #70
2020-10-11 16:26:22 -07:00
asonix d82484e7de Set environment variable with magickcore config flags 2020-10-11 13:18:19 -05:00
Nathan Fiedler 5da72fb895 Merge pull request #72 from asonix/asonix/sample-image
Add sample method
2020-10-11 07:36:12 -07:00
asonix e387f40bf0 Add quantum depth 2020-10-10 17:46:38 -05:00
asonix 4dda874de1 Add sample method 2020-10-10 17:42:35 -05:00
Nathan Fiedler ce36ba8cff Merge pull request #68 from captainbland/master
Add workaround for QuantumRange not defined error when hdri is disabled
2020-06-10 19:09:07 -07:00
Captain Bland a600637726 Add workaround for QuantumRange not defined error when hdri is disabled 2020-06-08 23:59:14 +01:00
Nathan Fiedler e360172bfa Merge pull request #67 from Drevoed/feature/MagickLiquidRescaleImage-MagickImplodeImage
feat: MagickLiquidRescaleImage | MagickImplodeImage
2020-05-28 14:48:22 -07:00
Kirill Mironov 778cd06cab feat: MagickLiquidRescaleImage | MagickImplodeImage 2020-05-28 23:49:01 +03:00
Nathan Fiedler 512a974ca5 Prepare for the 0.14.0 release 2020-05-21 19:20:50 -07:00
Nathan Fiedler 63f2bf6a12 Fix compiler warnings
cargo test passes
2020-05-21 08:40:16 -07:00
Nathan Fiedler 78e61525d6 chore: update change log 2020-05-21 08:21:15 -07:00
Nathan Fiedler 43edd76429 Update to latest bindgen release
The behavior around size_t changed so added a flag to temporarily avoid the
issue until it becomes a real problem later on.

cargo test passes
2020-05-21 08:17:08 -07:00
Nathan Fiedler a2ae59aa43 chore: update changelog 2020-05-21 06:43:24 -07:00
Nathan Fiedler 23c20a9425 doc: add pull option to docker-compose build 2020-05-21 06:37:26 -07:00
Nathan Fiedler dc826d5505 Merge pull request #66 from npajkovsky/master
fix build issues and try! warnings
2020-05-21 06:35:55 -07:00
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
Nikola Pajkovsky 92b12900ab fix multiple redefined values on linux build
841  | pub const FP_ZERO: u32 = 2;
     | --------------------------- previous definition of the value `FP_ZERO` here
...
8117 | pub const FP_ZERO: _bindgen_ty_2 = 2;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FP_ZERO` redefined here

Signed-off-by: Nikola Pajkovsky <nikola.pajkovsky@livesporttv.cz>
2020-05-21 11:42:08 +02:00
Nathan Fiedler 5abfac5cc3 Merge pull request #65 from Storykit/feature/set-image-alpha
feat: MagickSetImageAlpha
2020-04-24 12:58:39 -07:00