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 e6d2af0
Browse filesBrowse the repository at this point in the historyBrowse files
encode(), encodePNG(), encodeAPNG() and apngEncoder() default to zlib
level 4 instead of 1. Measured (our encoder, CPU time): graphic
891 -> 795 kB, readme screenshot 191 -> 149 kB, 1080p photo
2183 -> 1973 kB, external 560 -> 523 kB, for about +30% time
(photo 149 -> 196 ms). Level 3 compresses worse than 4 at no less time
(deflate_fast vs lazy matching), 6 nearly triples the photo's time.
sharp's default (level 6, no filter) stays ~10% smaller on the bench
graphic (it writes RGBA, which happens to compress better there), but
we're 29% smaller on photos at about its speed. Writing opaque images as
RGBA when smaller was measured and left out: it mostly helps small
synthetic images, costs ~8% always and makes decoding slower.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BsU2GAqbnFSNaYDBGD1Km2
0 commit comments