We use <canvas>.toBlob() to compress the snapshots to PNG. I ran a few
experiments with JPG, but the results seemed to even out between PNG and
JPG (with 100% quality). Choosing a lower quality for JPG compression
quickly started to look bad, especially on retina displays. Comment 176
had a few details around this:
https://bugzilla.mozilla.org/show_bug.cgi?id=678392#c176
-Stephen
-------- Original Message --------
Subject: Re: Increase in memory utilization on Mac OSX 10.7+ due to
history swipe animations
From: Robert O'Callahan <[email protected]>
To: Stephen Pohl <[email protected]>
Cc: [email protected]
Date: 2/12/13 4:44 PM
Can we compress these screenshots to JPEG or something?
Rob
--
Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur
Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr
nhgubevgl bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr
terng nzbat lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg
zhfg or lbhe fynir — whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq,
ohg gb freir, naq gb tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj
20:25-28]
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform