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

thumbor / thumbor / 42535120323
93%

Build:
DEFAULT BRANCH: master
Ran 08 Nov 2026 11:28PM 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:25PM UTC coverage: 92.07% (+0.07%) from 92.0%
42535120323

push

github

marcelometal
fix(pil): keep the colors of animated GIF frames

Pillow decodes every animated GIF frame after the first as RGB (RGBA when it
has transparency), and create_image() turned each one back into a palette image
with convert("P"). Without a palette argument that maps RGB onto the fixed web
palette with Floyd-Steinberg dithering, so every frame of an opaque animated
GIF but the first was dithered, and the noise also defeated LZW and the GIF
writer's frame deltas: a 30-frame 1920x1080 animation of a flat background
resized to 1600x900 came out as 39 MB, now 28 KB. Frames that share the global
palette are now loaded as palette images (GifImagePlugin.LOADING_STRATEGY set
to RGB_AFTER_DIFFERENT_PALETTE_ONLY while create_image() iterates the frames),
and frames that bring their own palette are converted with an adaptive one,
which is exact for up to 256 colors.

The adaptive palette is a median cut and costs more than the web palette
mapping (about 180 ms against 50 ms for a 1920x1080 frame of 256 colors), so
frames sharing the global palette skip the conversion: the 44-frame
Rotating_earth fixture went from 0.58 s to 0.37 s unresized and from 1.3 s to
1.1 s at 200x200, while a 20-frame photo GIF with local palettes took 9.2 s
against 8.9 s at 1600x900. Pillow composites palette frames on one canvas
tagged with the first frame's transparent index, so a later frame that changes
or drops that index, as gifsicle writes them, paints the entry as an opaque
color that would render transparent. The graphic control extensions are scanned
first and such GIFs keep Pillow's default decoding and the adaptive conversion.
With that rule the frames the engine sees match Pillow's RGB decoding on Pillow
10.4, 12.2 and 13.0 for the GIF fixtures, gifsicle-optimized copies and
generated GIFs covering every disposal method with and without transparency.

46 of 46 new or added lines in 1 file covered. (100.0%)

4528 of 4918 relevant lines covered (92.07%)

4.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 42535120323.1 08 Nov 2026 11:28PM UTC 104
92.07
GitHub Action Run
2 run-3.15 - 42535120323.2 08 Nov 2026 11:28PM UTC 104
92.07
GitHub Action Run
3 run-3.11 - 42535120323.3 08 Nov 2026 11:28PM UTC 104
92.07
GitHub Action Run
4 run-3.12 - 42535120323.4 08 Nov 2026 11:28PM UTC 104
92.07
GitHub Action Run
5 run-3.14 - 42535120323.5 08 Nov 2026 11:28PM UTC 104
92.07
GitHub Action Run
Source Files on build 42535120323
  • 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 #42535120323
  • 3736f68e on github
  • Prev Build on master (#42534703585)
  • Next Build on master (#42535503635)
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