Zirafnik
Zirafnik
I come here from the [PDF2Pic](https://github.com/yakovmeister/pdf2image) library, where the `density` option is broken. For some reason, it does not work when using graphicsmagick with PNGs. After some testing, I believe...
All 5 examples fail. Tested on both Firefox and Chrome. Demo link: https://node-cors-client.netlify.app/
A PDF with many pages, causes the Node to run out of memory. ~~This is a similar issue to the one in 'pdf2pic' library: https://github.com/yakovmeister/pdf2image/issues/54~~ ~~It can be solved with...
I have noticed, while quickly going through the codebase, that this library uses `existsSync`, `mkdirSync`, `readFileSync` and `writeFileSync` inside otherwise already `async` functions. Is there a reason for that? This...
`req.logout` now requires a callback, which accepts an `err` argument. example: ```js req.logout((err) => { if (err) return next(err); return res.json({ message: 'Logout successful', }); }); ```
Enhancement: ensure metadata.background is compatible with color package for single-channel images
When using `sharp(input).metadata()` an object with properties, which includes `background` is returned. > background: Default background colour, if present, for PNG (bKGD) and GIF images, either an RGB Object or...
## Feature request Currently the `.trim()` method trims each border as much as possible. If the image is asymmetric then the trimOffsets on each axis might differ (e.g. `trimOffsetLeft` !==...
## Feature request After trimming an image with `.trim()` you receive an info object, which includes the `trimOffsetLeft` and `trimOffsetTop` properties. However, a picture can be asymmetric, meaning that `.trim()`...
## Possible bug: `.trim()` removes 1 pixel too many When using `.trim()` Sharp.js will remove 1 too many pixels. I first noticed it in the metadata returned by `.trim()`: `trimOffsetLeft`...
I want to access the `req` object with dirty values, before it is sanitized, so I can log the malicious request. Right now, we get access to `req` in `onSanitize`...