diff --git a/CHANGELOG.md b/CHANGELOG.md index 04b8bf0..bba4757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ 7. Added `coalesce` option to all commands 8. Added orientation to `info()` 9. Changed `resize()` to not auto-set height from width +10. Added `getImageMagickVersion()` +11. Rewrote tests to be more clear + 2.2.0 - 10-01-2018 ------------------ diff --git a/README.md b/README.md index 95af25b..ed22c45 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ any of the parameters defined on `IBaseOptions`. For example, to prevent EasyIma command. Every command must have a `src` parameter. If you do not specify a `dst`, then a random file will be created. Be sure to clean up randomly created files by -either moving them to permanent storage, or deleting them. Some command have other required options. +either moving them to permanent storage, or deleting them. Some commands have other required options. -The examples below only specify the required arguments. See the [Docs](https://mrkmg.github.io/node-easyimage/index.html) for all available options for each -command. +The examples below only specify some of the available arguments. See the [Docs](https://mrkmg.github.io/node-easyimage/index.html) for all available options for +each command. ### Convert @@ -179,7 +179,7 @@ ImageMagick. ``` import {getImageMagickVersion} from "easyimage"; -const version = getImageMagickVersion(); +const version = await getImageMagickVersion(); ``` ## Error Handling diff --git a/docs/classes/baddestinationerror.html b/docs/classes/baddestinationerror.html index 08795ef..a3ea99b 100644 --- a/docs/classes/baddestinationerror.html +++ b/docs/classes/baddestinationerror.html @@ -1047,7 +1047,7 @@
IBaseOptions
. For example, to prevent EasyImage from auto-orientating your image, you can pass autoOrient: false
on any
command.
Every command must have a src
parameter. If you do not specify a dst
, then a random file will be created. Be sure to clean up randomly created files by
- either moving them to permanent storage, or deleting them. Some command have other required options.
The examples below only specify the required arguments. See the Docs for all available options for each - command.
+ either moving them to permanent storage, or deleting them. Some commands have other required options. +The examples below only specify some of the available arguments. See the Docs for all available options for + each command.
The convert() command can convert an image file from one type to another.
import {convert} from "easyimage";
@@ -1092,7 +1092,7 @@ Info
ImageMagick.
import {getImageMagickVersion} from "easyimage";
-const version = getImageMagickVersion();
+const version = await getImageMagickVersion();
Error Handling
There are 5 different types of errors that can be thrown.
@@ -1191,7 +1191,7 @@ convert
-
crop
execute
getImageMagickVersion
info
rescrop
resize
rotate
thumbnail
Installation
any of the parameters defined onIBaseOptions
. For example, to prevent EasyImage from auto-orientating your image, you can passautoOrient: false
on any command.Every command must have a
-src
parameter. If you do not specify adst
, then a random file will be created. Be sure to clean up randomly created files by - either moving them to permanent storage, or deleting them. Some command have other required options.The examples below only specify the required arguments. See the Docs for all available options for each - command.
+ either moving them to permanent storage, or deleting them. Some commands have other required options. +The examples below only specify some of the available arguments. See the Docs for all available options for + each command.
Convert
The convert() command can convert an image file from one type to another.