You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0957794
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,12 @@
27
27
and the encoders'). Animations that loop forever still have `-1` as their `loopCount` (also the decoded ones).
28
28
-`Animation.webpEncoder()`, `gifEncoder()` and `apngEncoder()` take the options of `encodeWebP()`, `encodeGIF()` and
29
29
`encodeAPNG()`, plus `loopCount`: the options are documented once.
30
+
-`trim({ color, tolerance })` and `colorToAlpha({ color, transparencyThreshold, opacityThreshold })`: the color goes into the options, like the other options. `GainMap.encode({ quality })` likewise.
30
31
31
32
### Deprecated
32
33
34
+
- Positional optional arguments, the options take the same values: `trim(color, options)`, `colorToAlpha(color, options)`, `GainMap.encode(quality)`, `resize`/`scale`/`contain`/`fit`/`cover` with a `mode` argument (use `ResizeOptions`), `Frame` constructor and `Frame.from()` with duration and offsets (use `FrameOptions`), `Animation` constructor with `loopCount` (use `AnimationOptions`), `Animation.decode(input, onlyExtractFirstFrame)`, `Animation.resize(width, height, mode)`, `Animation.encodeGIF(quality)` and `encodeAPNG(compression)`, `encodePNG(compression, metadata)` and `encodePNG(metadata)`, `encodeJPEG(quality)`, `renderSVG(svg, size, mode)`, `composite(source, x, y, options)`, `rotate(angle, resize)`, `sharpen(amount, radius)`, `roundCorners(radius)`, `fisheye(strength)`, `dominantColor(ignoreBlack, ignoreWhite, threshold)`. All of them still work until 4.0.
35
+
- The numeric frame disposal ids (`0`-`3`): use the names (`'any'`, `'keep'`, `'previous'`, `'background'`). Removed in 4.0.
33
36
-`ResizeModes.AUTO` (and `Image.RESIZE_AUTO`, `Frame.RESIZE_AUTO`): pass only the width or the height instead.
34
37
Removed in 4.0.
35
38
- Iterating over an image (`for (const [x, y] of image)`) and `iterateWithColors()`: use `coordinates()` and
0 commit comments