• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thumbor / thumbor / 42535503635
93%

Build:
DEFAULT BRANCH: master
Ran 08 Nov 2026 11:33PM UTC
Jobs 5
Files 104
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Nov 2026 11:30PM UTC coverage: 92.127% (+0.06%) from 92.07%
42535503635

push

github

marcelometal
fix(pil): stop transparent animated GIFs from leaving trails

Animated GIFs with transparency came out with trails: on a 12-frame 120x80
sticker of a circle moving over a transparent background, each output frame had
217 more opaque pixels than the one before. read_multiple() wrote whole-canvas
frames with the default disposal, under which a frame cannot clear what the
previous one drew, and frames that create_image() quantized from RGBA reached
the writer without a transparent palette entry. Frames are now quantized before
the writer the way it would, the missing entry is marked, and when some pixel
goes from visible to transparent every frame is written with disposal 2, with
its palette trimmed by thumbor and its transparent entry set to a color that no
frame uses.

Pillow crops each frame after a disposed one against a background painted with
the first frame's transparent entry, so with its own palettes it lost opaque
edges in that entry's color, and Pillow and ffmpeg restore a disposed frame to
its background color unless it has a transparent entry. A frame that uses all
256 colors folds its rarest one into the nearest to make room for that entry.
Animations that never clear a pixel keep the default disposal and their frame
deltas, and the GIF fixtures come out byte for byte as on master. The sticker
drops from 2489 to 1796 bytes, but resized to 60x40 it grows from 4058 to 4600
bytes, since Pillow writes a frame whole once its palette differs from the
first frame's. Fuzzed animations decode exactly in a browser-style decoder, in
Pillow and in ffmpeg, on Pillow 10.4, 11.0, 12.2, 12.3 and 13.0.

73 of 76 new or added lines in 1 file covered. (96.05%)

4599 of 4992 relevant lines covered (92.13%)

4.61 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
90.87
0.92% thumbor/engines/pil.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.12 - 42535503635.1 08 Nov 2026 11:33PM UTC 104
92.13
GitHub Action Run
2 run-3.13 - 42535503635.2 08 Nov 2026 11:33PM UTC 104
92.13
GitHub Action Run
3 run-3.11 - 42535503635.3 08 Nov 2026 11:33PM UTC 104
92.13
GitHub Action Run
4 run-3.15 - 42535503635.4 08 Nov 2026 11:33PM UTC 104
92.13
GitHub Action Run
5 run-3.14 - 42535503635.5 08 Nov 2026 11:33PM UTC 104
92.13
GitHub Action Run
Source Files on build 42535503635
  • Tree
  • List 104
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42535503635
  • 08f33ce8 on github
  • Prev Build on master (#42535120323)
  • Next Build on master (#42535897324)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc