name | about | labels |
---|---|---|
Possible bug |
Installation of sharp was successful but then something unexpected occurred using one of its features |
triage |
- Running
npm install sharp
completes without error. - Running
node -e "require('sharp')"
completes without error.
If you cannot confirm both of these, please open an installation issue instead.
- I am using the latest version of
sharp
as reported bynpm view sharp dist-tags.latest
.
If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of sharp
that is not the latest, please open an issue against that package instead.
What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?
The default behaviour of libvips is to cache input files, which can lead to EBUSY
or EPERM
errors on Windows.
Use [sharp.cache(false)](https://sharp.pixelplumbing.com/api-utility#cache)
to switch this feature off.
- Adding
sharp.cache(false)
does not fix this problem.
Images that contain EXIF Orientation metadata are not auto-oriented. By default, EXIF metadata is removed.
-
To auto-orient pixel values use the parameter-less
[rotate()](https://sharp.pixelplumbing.com/api-operation#rotate)
operation. -
To retain EXIF Orientation use
[keepExif()](https://sharp.pixelplumbing.com/api-output#keepexif)
. -
Using
rotate()
orkeepExif()
does not fix this problem.