FANDOM

2,054,106 Pages

Images affected

This script used the "AllImages" functionality of the Wikia API to get 100 images (pulls them alphabetically) from each of the 10 wikis selected for the test. The test only applies to .PNG and .JPG files, so other files in that first 100 (such as .gif or .svg) were skipped.

Results

This table is the results by filetype if we compress using both available methods for each filetype and then choose the best one:

Type Num Images Original size Compressed size Savings Savings percent
Overall (using best result) 895 134,223,336 119,326,381 14,896,955 11.10%
PNG (ave both methods) 230 19.49%
PNG (only using best result) 115 38,681,389 29,466,717 9,214,672 23.82%
JPEG (ave both methods) 1562 4.40%
JPEG (only using best result) 781 5,682,283 5.94%


NOTE: pngcrush was run in a very slow way to get optimal compression (with options: -fix -force -brute).

Type Num Images Original size Compressed size Savings Savings percent
PNG (optipng) 115 6,993,495 18.00%
PNG (pngcrush) 115 8,081,520 20.89%
JPEG (jpegoptim) 782 5,159,884 5.40%
JPEG (jpegtran) 782 3,253,111 3.40%


Wiki Num Images Original size Compressed size Savings Savings percent
Lyrics 190 799,290 9.13%
Naruto 192 5,106,558 9.90%
Glee 182 5,691,124 13.84%
Twilight 194 17,369,113 6.18%
Skyrim 96 285,780 4.20%
Fallout 170 5,945,264 13.39%
Muppet 200 693,744 6.88%
Recipes 196 231,902 2.29%
Wookiepedia 198 2,015,734 4.57%
Third Turn 176 1,574,279 4.72%


Filesize Range Num Images Original size Compressed size Savings Savings percent
1M+ 44 9,580,086 11.37%
500k - 1M 78 4,400,257 8.38%
100k - 500k 416 6,037,755 6.95%
< 100k 1256 3,469,912 7.61%

If we set a rule that says the bot would only do a re-upload if the savings were above a certain percentage:

Min % Savings To Upload Num Images Original size Compressed size Savings Savings percent
1% min 634 14,847,721 13.55%
5% min 368 13,701,783 21.09%
10% min 253 12,197,200 28.61%
15% min 175 11,152,159 32.43%
Community content is available under Copyright unless otherwise noted.