Repository navigation
Commit 4928b68
authored
recipe: Pillow 12.3.0 links libtiff (#128)
## What
Pillow 12.2.0 → 12.3.0, now linked against `flet-libtiff` 4.7.0.
## Why
Compressed TIFFs (JPEG, LZW, deflate, PackBits) opened but failed in `load()` with `OSError: decoder libtiff not available`. Reported in flet-dev/flet#6969: JPEG-compressed (compression 7) radar TIFFs worked on Windows and failed on Android.
`flet-libtiff` was already published with `JPEG_SUPPORT` and `ZIP_SUPPORT`; the Pillow recipe just never declared it, so `setup.py` built without `HAVE_LIBTIFF`.
The bump also matters on iOS: PyPI now ships official 12.3.0 iOS wheels (cp313+), which outranked our 12.2.0 on version. At equal versions our build tag wins again, so iOS apps get the forge build.
## Changes
- `meta.yaml`: `flet-libtiff 4.7.0` under `host` (Android, `.so` as `DT_NEEDED`) and `host_build` (iOS, static, folded into `_imaging`); version 12.3.0, build 1. Patches apply unchanged.
- `tests/test_pillow.py`: three tests: libtiff listed as a codec; JPEG-in-TIFF round-trip in RGB and RGBA; LZW / deflate / PackBits exact round-trips.
## Validation
- Android arm64-v8a emulator, Python 3.14: 14/14 on device. `_imaging` NEEDs `libtiff.so`, APK ships it beside `libjpeg.so`, wheel declares `Requires-Dist: flet-libtiff (==4.7.0)`.
- iOS simulator, Python 3.14: 14/14 on device; bundled wheel confirmed as the forge one (`Build: 1`). `_imaging` is `MH_DYLIB`, defines `TIFFInitJPEG`, no runtime `flet-lib*` deps. It now also links system `/usr/lib/liblzma.5.dylib`, which Pillow 12.3 adds for libtiff on iOS and which ships with the OS.
- Desktop (PyPI Pillow 12.3.0): 14/14.
- CI matrix: this PR's run.
## Consumer notes
Apps that read compressed TIFFs need only a rebuild against the new wheel; `PIL.features.check("libtiff")` returns `True` on both platforms. No config or code changes. Consumer guidance for Pillow lives in `recipes/pillow/README.md` on the `examples-and-docs` branch, which still describes compressed TIFF as unsupported and is updated separately.1 parent 0fadbfa commit 4928b68
2 files changed
Lines changed: 45 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
0 commit comments