Skip to content

Commit fafc004

Browse files
matmenclaude
andcommitted
changelog: both changes go into 3.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ljnxm1Qjrocq1izGajLx8J
1 parent 43217bf commit fafc004

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
# Changelog
22

3-
## 3.1.1
3+
## 3.2.0
4+
5+
### New
6+
7+
- **Metadata in every format**: `encodeJPEG()`, `encodeWebP()`, `encodeTGA()` and, for animations, `encodeGIF()`,
8+
`encodeAPNG()` and `encodeWebP()` take the same metadata as `encode()` (now called `Metadata`). Each format stores
9+
the fields it has a place for: Exif and a comment for JPEG, Exif for WebP, comments for GIF, the extension area for
10+
TGA, text chunks for PNG and APNG. Like PNGs, all files name ImageScript and its version as the software and
11+
include the creation time by default; `{software: ''}` leaves the software out.
12+
13+
### Deprecated
14+
15+
- **`PNGMetadata`**: renamed to `Metadata`, the old name stays an alias until 4.0.
416

517
### Fixes
618

719
- TGA encoding: run length encoded packets end with the row, as TGA 2.0 requires. Before, packets could span rows,
820
which some readers reject (Pillow fails with "buffer overrun").
21+
- PNG text metadata: text that isn't Latin-1 (like `©` is, but `Ⓒ` or emoji aren't) is written into `iTXt` chunks as
22+
UTF-8 instead of `tEXt`, where readers showed it garbled; text chunks come before the image data, where all readers
23+
look for them.
24+
- An invalid `creationTime` throws a `RangeError` instead of writing "Invalid Date".
925

1026
## 3.1.0
1127

0 commit comments

Comments
 (0)