Skip to content

Commit

Permalink
update custom reademe
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Sep 3, 2018
1 parent a738650 commit 2b7bdb7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/custom/README.md
Expand Up @@ -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.
Expand Down

0 comments on commit 2b7bdb7

Please sign in to comment.