Mastodon Feed: Post

Mastodon Feed

slightlyoff@toot.cafe ("Alex Russell") wrote:

Specifically, this is what we end up with for the sharp conversions to get the sample image:

```js
let previewBuffer = await sf.gamma(2)
.resize(3, 2, { fit: "fill" })
.sharpen({ sigma: 0.5 })
.removeAlpha()
.toFormat("raw", { bitdepth: 8 })
.toBuffer();
```