mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Docs: reorder readme sections
This commit is contained in:
parent
3b02134cdc
commit
d5d008f568
27
README.md
27
README.md
@ -19,6 +19,14 @@ rotation, extraction, compositing and gamma correction are available.
|
|||||||
Most modern macOS, Windows and Linux systems running Node.js v10+
|
Most modern macOS, Windows and Linux systems running Node.js v10+
|
||||||
do not require any additional install or runtime dependencies.
|
do not require any additional install or runtime dependencies.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
Visit [sharp.pixelplumbing.com](https://sharp.pixelplumbing.com/) for complete
|
||||||
|
[installation instructions](https://sharp.pixelplumbing.com/install),
|
||||||
|
[API documentation](https://sharp.pixelplumbing.com/api-constructor),
|
||||||
|
[benchmark tests](https://sharp.pixelplumbing.com/performance) and
|
||||||
|
[changelog](https://sharp.pixelplumbing.com/changelog).
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@ -43,6 +51,7 @@ sharp(inputBuffer)
|
|||||||
sharp('input.jpg')
|
sharp('input.jpg')
|
||||||
.rotate()
|
.rotate()
|
||||||
.resize(200)
|
.resize(200)
|
||||||
|
.jpeg({ mozjpeg: true })
|
||||||
.toBuffer()
|
.toBuffer()
|
||||||
.then( data => { ... })
|
.then( data => { ... })
|
||||||
.catch( err => { ... });
|
.catch( err => { ... });
|
||||||
@ -84,23 +93,15 @@ readableStream
|
|||||||
.pipe(writableStream);
|
.pipe(writableStream);
|
||||||
```
|
```
|
||||||
|
|
||||||
[](https://coveralls.io/r/lovell/sharp?branch=master)
|
## Contributing
|
||||||
[](https://nodejs.org/dist/latest/docs/api/n-api.html#n_api_n_api_version_matrix)
|
|
||||||
|
|
||||||
### Documentation
|
|
||||||
|
|
||||||
Visit [sharp.pixelplumbing.com](https://sharp.pixelplumbing.com/) for complete
|
|
||||||
[installation instructions](https://sharp.pixelplumbing.com/install),
|
|
||||||
[API documentation](https://sharp.pixelplumbing.com/api-constructor),
|
|
||||||
[benchmark tests](https://sharp.pixelplumbing.com/performance) and
|
|
||||||
[changelog](https://sharp.pixelplumbing.com/changelog).
|
|
||||||
|
|
||||||
### Contributing
|
|
||||||
|
|
||||||
A [guide for contributors](https://github.com/lovell/sharp/blob/master/.github/CONTRIBUTING.md)
|
A [guide for contributors](https://github.com/lovell/sharp/blob/master/.github/CONTRIBUTING.md)
|
||||||
covers reporting bugs, requesting features and submitting code changes.
|
covers reporting bugs, requesting features and submitting code changes.
|
||||||
|
|
||||||
### Licensing
|
[](https://coveralls.io/r/lovell/sharp?branch=master)
|
||||||
|
[](https://nodejs.org/dist/latest/docs/api/n-api.html#n_api_n_api_version_matrix)
|
||||||
|
|
||||||
|
## Licensing
|
||||||
|
|
||||||
Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Lovell Fuller and contributors.
|
Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Lovell Fuller and contributors.
|
||||||
|
|
||||||
|
@ -50,6 +50,10 @@ no child processes are spawned and Promises/async/await are supported.
|
|||||||
|
|
||||||
### Optimal
|
### Optimal
|
||||||
|
|
||||||
|
The features of `mozjpeg` and `pngquant` can be used
|
||||||
|
to optimise the file size of JPEG and PNG images respectively,
|
||||||
|
without having to invoke separate `imagemin` processes.
|
||||||
|
|
||||||
Huffman tables are optimised when generating JPEG output images
|
Huffman tables are optimised when generating JPEG output images
|
||||||
without having to use separate command line tools like
|
without having to use separate command line tools like
|
||||||
[jpegoptim](https://github.com/tjko/jpegoptim) and
|
[jpegoptim](https://github.com/tjko/jpegoptim) and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user