From 2b7bdb728506d0ddbf0067ba21c48aed862b64b5 Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Mon, 3 Sep 2018 14:09:24 -0700 Subject: [PATCH] update custom reademe --- packages/custom/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/custom/README.md b/packages/custom/README.md index fea61012d..234a3ebe7 100644 --- a/packages/custom/README.md +++ b/packages/custom/README.md @@ -33,6 +33,23 @@ configure({ }) ``` +#### Extending Jimp Further + +You can use configure to add more types to a jimp as well. + +```js +let jimp = configure({ + types: [bmp] +}); + +jimp = configure( + { + types: [jpeg] + }, + jimp +); +``` + ## Type Definition To define a new Jimp image type write a function the takes the current Jimp configuration. In this function you can extend Jimp's internal data structures.