Skip to content

Commit

Permalink
Docs: info about how animated images are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Nov 27, 2023
1 parent 7ad86fe commit 9c877d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api-constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Non-critical problems encountered during processing are emitted as `warning` eve

Implements the [stream.Duplex](http://nodejs.org/api/stream.html#stream_class_stream_duplex) class.

When loading more than one page/frame of an animated image,
these are combined as a vertically-stacked "toilet roll" image
where the overall height is the `pageHeight` multiplied by the number of `pages`.

**Throws**:

- <code>Error</code> Invalid parameters
Expand Down
4 changes: 4 additions & 0 deletions lib/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const debuglog = util.debuglog('sharp');
*
* Implements the [stream.Duplex](http://nodejs.org/api/stream.html#stream_class_stream_duplex) class.
*
* When loading more than one page/frame of an animated image,
* these are combined as a vertically-stacked "toilet roll" image
* where the overall height is the `pageHeight` multiplied by the number of `pages`.
*
* @constructs Sharp
*
* @emits Sharp#info
Expand Down

0 comments on commit 9c877d9

Please sign in to comment.