Skip to content

Instantly share code, notes, and snippets.

@acdha acdha/congress.gov.log
Last active Sep 3, 2015

Embed
What would you like to do?
Simple test of image optimization savings
Optimizing https://www.congress.gov/img/congress_gov_logo2.png
Original: 8654
optipng: 8652
advpng: 8216
zopflipng: 8215
Final: 8215 94.93% (439 bytes saved)
Optimizing https://congress.gov/img/sprite_congress.png
Original: 8137
optipng: 6857
advpng: 5265
zopflipng: 5258
Final: 5258 64.62% (2879 bytes saved)
Optimizing https://congress.gov/img/bg_home_top.png
Original: 72849
optipng: 72847
advpng: 65151
zopflipng: 64959
Final: 64959 89.17% (7890 bytes saved)
Optimizing https://congress.gov/img/bg_home_house_stat.png
Original: 9194
optipng: 9191
advpng: 8775
zopflipng: 8766
Final: 8766 95.34% (428 bytes saved)
Optimizing https://congress.gov/img/bg_home_senate_stat.png
Original: 12337
optipng: 12334
advpng: 11621
zopflipng: 11607
Final: 11607 94.08% (730 bytes saved)
Optimizing https://congress.gov/img/banner_home_congressional.png
Original: 4999
optipng: 4996
advpng: 4859
zopflipng: 4851
Final: 4851 97.04% (148 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_oh_8_boehner_john_200.jpg
Original: 6513
mozjpeg: 6120
Final: 6120 93.97% (393 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_ca_23_mccarthy_kevin_200.jpg
Original: 6144
mozjpeg: 5746
Final: 5746 93.52% (398 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_ca_12_pelosi_nancy_200.jpg
Original: 7057
mozjpeg: 6684
Final: 6684 94.71% (373 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_la_1_scalise_steve_200.jpg
Original: 6062
mozjpeg: 5703
Final: 5703 94.08% (359 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_md_5_hoyer_steny_200.jpg
Original: 6724
mozjpeg: 6367
Final: 6367 94.69% (357 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_wa_5_mcmorrisrodgers_cathy_200.jpg
Original: 6881
mozjpeg: 6559
jpegrescan: 6545
Final: 6545 95.12% (336 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_sc_6_clyburn_james_200.jpg
Original: 7784
mozjpeg: 7353
Final: 7353 94.46% (431 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_in_6_messer_luke_200.jpg
Original: 7447
mozjpeg: 7018
Final: 7018 94.24% (429 bytes saved)
Optimizing https://congress.gov/img/member/114_rp_ca_34_becerra_xavier_200.jpg
Original: 6346
mozjpeg: 5961
Final: 5961 93.93% (385 bytes saved)
Optimizing https://congress.gov/css/cache/sprite_carousel.png
Original: 4380
optipng: 3881
advpng: 3573
zopflipng: 3555
Final: 3555 81.16% (825 bytes saved)
Optimizing https://congress.gov/img/member/h_biden_joseph_200771074459125_200.jpg
Original: 6866
mozjpeg: 6393
Final: 6393 93.11% (473 bytes saved)
Optimizing https://congress.gov/img/member/114_sr_ky_mcconnell_mitch_200.jpg
Original: 6618
mozjpeg: 6210
Final: 6210 93.83% (408 bytes saved)
Optimizing https://congress.gov/img/member/114_sr_nv_reid_harry_200.jpg
Original: 6918
mozjpeg: 6544
Final: 6544 94.59% (374 bytes saved)
Optimizing https://congress.gov/img/member/114_sr_ut_hatch_orrin_200.jpg
Original: 6676
mozjpeg: 6280
Final: 6280 94.07% (396 bytes saved)
Optimizing https://congress.gov/img/member/114_sr_tx_cornyn_john_200.jpg
Original: 6598
mozjpeg: 6168
Final: 6168 93.48% (430 bytes saved)
Optimizing https://congress.gov/img/member/114_sr_il_durbin_richard_200.jpg
Original: 6455
mozjpeg: 6077
Final: 6077 94.14% (378 bytes saved)
Optimizing https://congress.gov/img/sprite_foot.png
Original: 7926
optipng: 7434
zopflipng: 6638
Final: 6638 83.75% (1288 bytes saved)
Optimizing https://www.congress.gov/img/video-legislative-process.jpg
Original: 33978
mozjpeg: 17827
Final: 17827 52.47% (16151 bytes saved)
Optimizing https://congress.gov/css/cache/images/ui-bg_flat_100_ffffff_40x100.png
Original: 208
zopflipng: 74
Final: 74 35.58% (134 bytes saved)
Optimizing https://congress.gov/css/cache/images/ui-icons_333333_256x240.png
Original: 6975
optipng: 4431
advpng: 3787
zopflipng: 3769
Final: 3769 54.04% (3206 bytes saved)
Optimizing https://cdn.loc.gov/share/images/feedback.png
Original: 212
optipng: 194
advpng: 135
zopflipng: 112
Final: 112 52.83% (100 bytes saved)
#!/usr/bin/env phantomjs
/*
Print all JPEG and PNG images requested while loading the URL(s) specified on the command-line
*/
"use strict";
var system = require('system');
function logError() {
system.stderr.write(Array.prototype.join.call(arguments, ' ') + '\n');
}
function initPage() {
var page = new WebPage();
page.onResourceRequested = function(requestData, networkRequest) {
var match = requestData.url.match(/[.](jpg|jpeg|png)(?:$|\?)/);
if (match != null) {
console.log(requestData.url);
}
};
page.onError = function (msg, trace) {
logError('🌋 ERROR:', msg);
trace.forEach(function(item) {
logError(' ', item.file, ':', item.line);
});
};
return page;
}
function crawlNextPage() {
var page = initPage();
if (URLs.length < 1) {
page.close();
phantom.exit();
}
var url = URLs.shift();
page.open(url, function (status) {
if (status !== 'success') {
logError('⚠️ Unable to load ', url, ': ', status);
}
page.close();
crawlNextPage();
});
}
var URLs = [];
system.args.slice(1).forEach(function (arg) {
URLs.push(arg);
});
crawlNextPage();
Optimizing http://cdn.loc.gov/images/img-foot/img_locfoot.png
Original: 619
optipng: 462
zopflipng: 396
Final: 396 63.97% (223 bytes saved)
Optimizing http://cdn.loc.gov/images/img-head/img_lochead.png
Original: 323
optipng: 209
zopflipng: 155
Final: 155 47.99% (168 bytes saved)
Optimizing http://cdn.loc.gov/images/img-head/logo-loc.png
Original: 1447
optipng: 1443
advpng: 1340
zopflipng: 1335
Final: 1335 92.26% (112 bytes saved)
Optimizing http://cdn.loc.gov/js/jcarousel/loc_theme/next-horizontal-light.png
Original: 633
optipng: 492
zopflipng: 434
Final: 434 68.56% (199 bytes saved)
Optimizing http://cdn.loc.gov/js/jcarousel/loc_theme/prev-horizontal-light.png
Original: 637
optipng: 497
zopflipng: 429
Final: 429 67.35% (208 bytes saved)
Optimizing http://cdn.loc.gov/share/images/feedback.png
Original: 212
optipng: 194
advpng: 135
zopflipng: 112
Final: 112 52.83% (100 bytes saved)
Optimizing http://www.loc.gov/img-std/loc_sprite_ss.png
Original: 2180
optipng: 2176
advpng: 1976
zopflipng: 1963
Final: 1963 90.05% (217 bytes saved)
Optimizing http://www.loc.gov/law/images/blog.jpg
Original: 2656
mozjpeg: 2286
jpegrescan: 2222
Final: 2222 83.66% (434 bytes saved)
Optimizing http://www.loc.gov/law/images/CongDotGov_mobileReady.jpg
Original: 6687
mozjpeg: 5750
Final: 5750 85.99% (937 bytes saved)
Optimizing http://www.loc.gov/law/images/congressionalrecordapp.jpg
Original: 9885
mozjpeg: 9013
Final: 9013 91.18% (872 bytes saved)
Optimizing http://www.loc.gov/law/images/e_cigarettes.jpg
Original: 4082
Final: 4082 100.00% (0 bytes saved)
Optimizing http://www.loc.gov/law/images/HearingA.jpg
Original: 2736
mozjpeg: 2718
Final: 2718 99.34% (18 bytes saved)
Optimizing http://www.loc.gov/law/images/icon-twitter.jpg
Original: 1123
mozjpeg: 894
jpegrescan: 778
Final: 778 69.28% (345 bytes saved)
Optimizing http://www.loc.gov/law/images/law_logo.jpg
Original: 40234
mozjpeg: 18782
Final: 18782 46.68% (21452 bytes saved)
Optimizing http://www.loc.gov/law/images/Link_rot.jpg
Original: 4008
Final: 4008 100.00% (0 bytes saved)
Optimizing http://www.loc.gov/law/images/Reading_room.jpg
Original: 4127
mozjpeg: 4119
Final: 4119 99.81% (8 bytes saved)
Optimizing http://www.loc.gov/law/images/September_event.jpg
Original: 2555
Final: 2555 100.00% (0 bytes saved)
Optimizing http://www.loc.gov/law/images/services-background.jpg
Original: 18460
mozjpeg: 14590
Final: 14590 79.04% (3870 bytes saved)
Optimizing http://www.loc.gov/law/images/services-congressonly.jpg
Original: 4247
mozjpeg: 3932
jpegrescan: 3863
Final: 3863 90.96% (384 bytes saved)
Optimizing http://www.loc.gov/law/images/services-reports.jpg
Original: 5591
mozjpeg: 5094
jpegrescan: 5047
Final: 5047 90.27% (544 bytes saved)
Optimizing http://www.loc.gov/law/images/services-research.jpg
Original: 5781
mozjpeg: 5359
jpegrescan: 5302
Final: 5302 91.71% (479 bytes saved)
Optimizing http://www.loc.gov/law/images/SuffragettesA.jpg
Original: 4455
mozjpeg: 4416
Final: 4416 99.12% (39 bytes saved)
Optimizing http://www.loc.gov/law/images/thumb-guidetolawonline.jpg
Original: 13393
mozjpeg: 2805
jpegrescan: 2718
Final: 2718 20.29% (10675 bytes saved)
Optimizing http://www.loc.gov/law/law-blog-short-banner.jpg
Original: 29238
mozjpeg: 25771
Final: 25771 88.14% (3467 bytes saved)
#!/usr/bin/env python -u
# encoding: utf-8
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import os
import subprocess
import sys
from urlparse import urlparse
import requests
def run_command(*args, **kwargs):
kwargs['stderr'] = subprocess.STDOUT
try:
subprocess.check_output(*args, **kwargs)
except subprocess.CalledProcessError as exc:
print('ERROR: %s returned %s:' % (args[0][0], exc.returncode), file=sys.stderr)
if exc.output:
print('\t', exc.output.replace('\n', '\t\n'), file=sys.stderr)
raise
def do_jpegoptim(filename):
run_command(['jpegoptim', '--quiet', '-o', '--strip-all', filename])
def do_jpegrescan(filename):
run_command(['jpegrescan', '-q', '-s', filename, filename])
def do_mozjpeg(filename):
run_command(['mozjpeg', '-copy', 'none', '-outfile', filename, filename])
def do_optipng(filename):
run_command(['optipng', '-q', '-o7', filename])
def do_advpng(filename):
run_command(['advpng', '-q', '-z4', filename])
def do_zopflipng(filename):
run_command(['zopflipng', '-y', '-m', filename, filename])
def print_stage_progress(stage, *args):
print('%20s: ' % stage, *args)
def optimize_url(url):
print("Optimizing %s" % url)
parsed_url = urlparse(url)
filename = os.path.basename(parsed_url.path)
if filename.endswith('.jpg'):
optimizers = (do_mozjpeg, do_jpegoptim, do_jpegrescan)
elif filename.endswith('.png'):
optimizers = (do_optipng, do_advpng, do_zopflipng)
else:
print('No optimizers defined for "%s"' % filename, file=sys.stderr)
return
resp = requests.get(url, stream=True)
if resp.status_code != 200:
print('HTTP %d from %s' % (resp.status_code, url), file=sys.stderr)
return
with open(filename, 'wb') as f:
for chunk in resp.iter_content(chunk_size=16384):
f.write(chunk)
best_size = original_size = os.path.getsize(filename)
print_stage_progress('Original', original_size)
for optimizer in optimizers:
optimizer_name = optimizer.__name__.replace('do_', '')
try:
optimizer(filename)
except subprocess.CalledProcessError:
print('SKIPPING %s: %s failed' % (filename, optimizer_name), file=sys.stderr)
return
new_size = os.path.getsize(filename)
if new_size < best_size:
print_stage_progress(optimizer_name, new_size)
best_size = new_size
print_stage_progress('Final', best_size, '%0.2f%% (%d bytes saved)' % ((100 * best_size / original_size),
original_size - best_size))
print()
if __name__ == '__main__':
if sys.stdin.isatty():
if len(sys.argv) < 2:
print(__doc__.strip(), file=sys.stderr)
else:
urls = sys.argv[1:]
else:
urls = (i.strip() for i in sys.stdin)
for url in urls:
optimize_url(url)
Optimizing http://cdn.loc.gov/images/img-foot/img_locfoot.png
Original: 619
optipng: 462
zopflipng: 396
Final: 396 63.97% (223 bytes saved)
Optimizing http://cdn.loc.gov/images/img-head/img_lochead.png
Original: 323
optipng: 209
zopflipng: 155
Final: 155 47.99% (168 bytes saved)
Optimizing http://cdn.loc.gov/images/img-head/logo-loc.png
Original: 1447
optipng: 1443
advpng: 1340
zopflipng: 1335
Final: 1335 92.26% (112 bytes saved)
Optimizing http://read.gov/cfb/ambassador/images/thumb_kate-dicamillo.jpg
Original: 20195
mozjpeg: 19520
Final: 19520 96.66% (675 bytes saved)
Optimizing http://read.gov/images/banner-aesop.jpg
Original: 164010
mozjpeg: 155068
Final: 155068 94.55% (8942 bytes saved)
Optimizing http://read.gov/images/banner-rocket.jpg
Original: 88503
mozjpeg: 82814
Final: 82814 93.57% (5689 bytes saved)
Optimizing http://read.gov/images/banner_exquisite.jpg
Original: 113402
mozjpeg: 108740
Final: 108740 95.89% (4662 bytes saved)
Optimizing http://read.gov/images/banner_readers.jpg
Original: 151648
mozjpeg: 142928
Final: 142928 94.25% (8720 bytes saved)
Optimizing http://read.gov/images/ECVideo-wide.jpg
Original: 30051
mozjpeg: 28170
Final: 28170 93.74% (1881 bytes saved)
Optimizing http://read.gov/images/festival.jpg
Original: 25481
mozjpeg: 23553
Final: 23553 92.43% (1928 bytes saved)
Optimizing http://read.gov/images/leftnav-wide.jpg
Original: 18326
mozjpeg: 17096
Final: 17096 93.29% (1230 bytes saved)
Optimizing http://www.loc.gov/img-std/loc_sprite_ss.png
Original: 2180
optipng: 2176
advpng: 1976
zopflipng: 1963
Final: 1963 90.05% (217 bytes saved)
Optimizing http://content.wdl.org/7309/thumbnail/1399401764/308x255.jpg
Original: 15028
mozjpeg: 14862
Final: 14862 98.90% (166 bytes saved)
Optimizing http://content.wdl.org/575/thumbnail/1403113637/308x255.jpg
Original: 27848
mozjpeg: 27655
Final: 27655 99.31% (193 bytes saved)
Optimizing http://content.wdl.org/112/thumbnail/1408540849/308x255.jpg
Original: 11773
mozjpeg: 11601
Final: 11601 98.54% (172 bytes saved)
Optimizing http://content.wdl.org/634/thumbnail/1403113643/308x255.jpg
Original: 15452
mozjpeg: 15273
Final: 15273 98.84% (179 bytes saved)
Optimizing http://content.wdl.org/2707/thumbnail/1403113733/308x255.jpg
Original: 16771
mozjpeg: 16549
Final: 16549 98.68% (222 bytes saved)
Optimizing http://content.wdl.org/15284/thumbnail/1430185618/192x192.jpg
Original: 10581
mozjpeg: 10459
Final: 10459 98.85% (122 bytes saved)
Optimizing http://content.wdl.org/4078/thumbnail/1403113824/192x192.jpg
Original: 11799
mozjpeg: 11739
Final: 11739 99.49% (60 bytes saved)
Optimizing http://content.wdl.org/8990/thumbnail/1404323997/192x192.jpg
Original: 9792
mozjpeg: 9682
Final: 9682 98.88% (110 bytes saved)
Optimizing http://content.wdl.org/11966/thumbnail/1403114399/192x192.jpg
Original: 7459
mozjpeg: 7341
Final: 7341 98.42% (118 bytes saved)
Optimizing http://content.wdl.org/16891/thumbnail/1435854993/192x192.jpg
Original: 8815
mozjpeg: 8705
Final: 8705 98.75% (110 bytes saved)
Optimizing http://content.wdl.org/16892/thumbnail/1435854993/192x192.jpg
Original: 7953
mozjpeg: 7839
Final: 7839 98.57% (114 bytes saved)
Optimizing http://content.wdl.org/16893/thumbnail/1435854994/192x192.jpg
Original: 9343
mozjpeg: 9222
Final: 9222 98.70% (121 bytes saved)
Optimizing http://content.wdl.org/16894/thumbnail/1435854994/192x192.jpg
Original: 6112
mozjpeg: 5991
Final: 5991 98.02% (121 bytes saved)
Optimizing http://content.wdl.org/3023/thumbnail/192x192.jpg
Original: 7099
mozjpeg: 7040
Final: 7040 99.17% (59 bytes saved)
Optimizing http://content.wdl.org/2703/thumbnail/1405346442/308x255.jpg
Original: 37455
mozjpeg: 37246
Final: 37246 99.44% (209 bytes saved)
Optimizing http://content.wdl.org/454/thumbnail/1403113625/308x255.jpg
Original: 18012
mozjpeg: 17842
Final: 17842 99.06% (170 bytes saved)
Optimizing http://content.wdl.org/2935/thumbnail/1403113749/308x255.jpg
Original: 21515
mozjpeg: 21332
Final: 21332 99.15% (183 bytes saved)
Optimizing http://content.wdl.org/2408/thumbnail/1431377028/308x255.jpg
Original: 16321
mozjpeg: 16119
Final: 16119 98.76% (202 bytes saved)
Optimizing http://content.wdl.org/11257/thumbnail/1404324075/308x255.jpg
Original: 21294
mozjpeg: 21087
Final: 21087 99.03% (207 bytes saved)
Optimizing http://content.wdl.org/1/thumbnail/1433283402/616x510.jpg
Original: 47091
mozjpeg: 46525
Final: 46525 98.80% (566 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/3/4.png
Original: 104885
zopflipng: 100994
Final: 100994 96.29% (3891 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/4/4.png
Original: 120936
zopflipng: 119421
Final: 119421 98.75% (1515 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/3/3.png
Original: 99977
optipng: 98458
zopflipng: 94014
Final: 94014 94.04% (5963 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/4/3.png
Original: 104459
zopflipng: 102284
Final: 102284 97.92% (2175 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/1/5.png
Original: 120541
zopflipng: 119010
Final: 119010 98.73% (1531 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/2/5.png
Original: 100313
zopflipng: 98141
Final: 98141 97.83% (2172 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/1/4.png
Original: 100412
optipng: 99841
zopflipng: 97030
Final: 97030 96.63% (3382 bytes saved)
Optimizing http://map-tiles.wdl.org/natural-earth-ii/3/2/4.png
Original: 105451
optipng: 105252
zopflipng: 102149
Final: 102149 96.87% (3302 bytes saved)
Optimizing http://www.wdl.org/static/external/leafletjs/images/marker-icon.png
Original: 1708
advpng: 1689
zopflipng: 1688
Final: 1688 98.83% (20 bytes saved)
Optimizing http://www.wdl.org/static/external/leafletjs/images/marker-shadow.png
Original: 617
zopflipng: 608
Final: 608 98.54% (9 bytes saved)
Optimizing http://www.wdl.org/static/external/leafletjs/images/layers.f7af629ed891.png
Original: 720
zopflipng: 715
Final: 715 99.31% (5 bytes saved)
Optimizing http://f1.na.readspeaker.com/script/5147/img/rs_button.png
Original: 38589
optipng: 32835
advpng: 30373
zopflipng: 30354
Final: 30354 78.66% (8235 bytes saved)
Optimizing http://content.wdl.org/1/service/thumbnail/1433283402/1024x1024/1/1.jpg
Original: 181859
mozjpeg: 180566
Final: 180566 99.29% (1293 bytes saved)
Optimizing http://www.wdl.org/static/img/sprites/seadragon-controls-sda16e174d0.c034b14454f0.png
Original: 924
zopflipng: 919
Final: 919 99.46% (5 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/0/0_0.jpg
Original: 630
mozjpeg: 373
jpegrescan: 285
Final: 285 45.24% (345 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/1/0_0.jpg
Original: 641
mozjpeg: 388
jpegrescan: 301
Final: 301 46.96% (340 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/2/0_0.jpg
Original: 645
mozjpeg: 392
jpegrescan: 305
Final: 305 47.29% (340 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/3/0_0.jpg
Original: 652
mozjpeg: 403
jpegrescan: 316
Final: 316 48.47% (336 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/4/0_0.jpg
Original: 687
mozjpeg: 442
jpegrescan: 352
Final: 352 51.24% (335 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/5/0_0.jpg
Original: 792
mozjpeg: 547
jpegrescan: 465
Final: 465 58.71% (327 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/6/0_0.jpg
Original: 1110
mozjpeg: 863
jpegrescan: 787
Final: 787 70.90% (323 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/7/0_0.jpg
Original: 2307
mozjpeg: 2013
jpegrescan: 1977
Final: 1977 85.70% (330 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/8/0_0.jpg
Original: 6566
mozjpeg: 6001
Final: 6001 91.40% (565 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/9/0_0.jpg
Original: 17156
mozjpeg: 15877
Final: 15877 92.54% (1279 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/9/0_1.jpg
Original: 5128
mozjpeg: 4655
Final: 4655 90.78% (473 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/9/1_0.jpg
Original: 735
mozjpeg: 423
jpegrescan: 344
Final: 344 46.80% (391 bytes saved)
Optimizing http://www.wdl.org/media/1/service/dzi/1433283402/1/1_files/9/1_1.jpg
Original: 656
mozjpeg: 387
jpegrescan: 300
Final: 300 45.73% (356 bytes saved)
Optimizing http://www.loc.gov/portals/static/about/images/about-the-librarian.jpg
Original: 16547
mozjpeg: 15413
Final: 15413 93.15% (1134 bytes saved)
Optimizing http://www.loc.gov/portals/static/about/images/news.jpg
Original: 32079
mozjpeg: 30731
Final: 30731 95.80% (1348 bytes saved)
Optimizing http://www.loc.gov/portals/static/about/images/reports-and-budgets.jpg
Original: 23965
mozjpeg: 22139
Final: 22139 92.38% (1826 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/432_292.jpg
Original: 20562
mozjpeg: 19694
Final: 19694 95.78% (868 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/images/apps.jpg
Original: 3930
mozjpeg: 3890
Final: 3890 98.98% (40 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/images/blogs.jpg
Original: 7628
mozjpeg: 7621
jpegrescan: 7608
Final: 7608 99.74% (20 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/images/nbf-15th-loc-home-thumb.jpg
Original: 21996
mozjpeg: 21180
Final: 21180 96.29% (816 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/images/places-in-the-news.jpg
Original: 4731
jpegoptim: 4710
Final: 4710 99.56% (21 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/images/read-dot-gov.jpg
Original: 5213
jpegoptim: 5199
Final: 5199 99.73% (14 bytes saved)
Optimizing http://www.loc.gov/portals/static/discover/images/today-in-history.jpg
Original: 3516
mozjpeg: 3494
Final: 3494 99.37% (22 bytes saved)
Optimizing http://www.loc.gov/portals/static/education/432_292.jpg
Original: 15693
mozjpeg: 15372
Final: 15372 97.95% (321 bytes saved)
Optimizing http://www.loc.gov/portals/static/exhibits/images/exploring_exhibit_thumb.jpg
Original: 11424
mozjpeg: 11167
Final: 11167 97.75% (257 bytes saved)
Optimizing http://www.loc.gov/portals/static/exhibits/images/out_of_ashes_thumb.jpg
Original: 15354
mozjpeg: 14355
Final: 14355 93.49% (999 bytes saved)
Optimizing http://www.loc.gov/portals/static/exhibits/images/pointing_pens_exhibit_thumb.jpg
Original: 25633
mozjpeg: 24496
Final: 24496 95.56% (1137 bytes saved)
Optimizing http://www.loc.gov/portals/static/formats/images/historic-newspapers.jpg
Original: 7818
mozjpeg: 7586
Final: 7586 97.03% (232 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/digital-collections.jpg
Original: 6526
mozjpeg: 6512
jpegrescan: 6498
Final: 6498 99.57% (28 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/film.jpg
Original: 2109
jpegoptim: 2090
Final: 2090 99.10% (19 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/historic-newspapers.jpg
Original: 5066
mozjpeg: 5005
Final: 5005 98.80% (61 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/manuscripts.jpg
Original: 5231
mozjpeg: 5211
jpegrescan: 5201
Final: 5201 99.43% (30 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/maps.jpg
Original: 5441
jpegoptim: 5428
Final: 5428 99.76% (13 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/performing-arts.jpg
Original: 2957
jpegoptim: 2934
Final: 2934 99.22% (23 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/prints-and-photographs.jpg
Original: 3870
mozjpeg: 3853
jpegrescan: 3852
Final: 3852 99.53% (18 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/sound-recordings.jpg
Original: 6126
mozjpeg: 6099
Final: 6099 99.56% (27 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/collection/veterans-history.jpg
Original: 3805
jpegoptim: 3781
Final: 3781 99.37% (24 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/featured/carousel-1.jpg
Original: 48872
mozjpeg: 46112
Final: 46112 94.35% (2760 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/featured/carousel-2.jpg
Original: 41462
mozjpeg: 38838
Final: 38838 93.67% (2624 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/featured/carousel-3.jpg
Original: 65561
mozjpeg: 62903
Final: 62903 95.95% (2658 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/featured/carousel-4.jpg
Original: 37468
mozjpeg: 34568
Final: 34568 92.26% (2900 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/featured/carousel-5.jpg
Original: 43677
mozjpeg: 41255
Final: 41255 94.45% (2422 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/logo-home-catalog.png
Original: 4433
optipng: 2566
advpng: 2354
zopflipng: 2351
Final: 2351 53.03% (2082 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/logo-home-congress.png
Original: 8654
optipng: 8652
advpng: 8216
zopflipng: 8215
Final: 8215 94.93% (439 bytes saved)
Optimizing http://www.loc.gov/portals/static/home/images/logo-home-copyright.png
Original: 3739
optipng: 2202
advpng: 1994
zopflipng: 1993
Final: 1993 53.30% (1746 bytes saved)
Optimizing http://www.loc.gov/portals/static/visit/images/bookfest.jpg
Original: 18281
mozjpeg: 17758
Final: 17758 97.14% (523 bytes saved)
Optimizing http://www.loc.gov/portals/static/visit/images/civil-war-exhibit.jpg
Original: 12717
mozjpeg: 11215
Final: 11215 88.19% (1502 bytes saved)
Optimizing http://www.loc.gov/portals/static/visit/images/concerts.jpg
Original: 17511
mozjpeg: 16461
Final: 16461 94.00% (1050 bytes saved)
Optimizing http://www.loc.gov/portals/static/visit/images/maps.jpg
Original: 12384
mozjpeg: 11086
Final: 11086 89.52% (1298 bytes saved)
Optimizing http://www.loc.gov/portals/static/visit/images/tours.jpg
Original: 59038
mozjpeg: 56051
Final: 56051 94.94% (2987 bytes saved)
Optimizing http://www.loc.gov/research-centers/static/images/reading-room.jpg
Original: 14839
mozjpeg: 14553
Final: 14553 98.07% (286 bytes saved)
Optimizing http://www.loc.gov/static/css/royal-slider/rs-minimal-white.png
Original: 5458
optipng: 3596
advpng: 2586
zopflipng: 2398
Final: 2398 43.94% (3060 bytes saved)
Optimizing http://www.loc.gov/static/images/library-of-congress-logo.png
Original: 7278
optipng: 4271
advpng: 3919
zopflipng: 3909
Final: 3909 53.71% (3369 bytes saved)
Optimizing http://www.loc.gov/static/images/share/feedback.png
Original: 212
optipng: 194
advpng: 135
zopflipng: 112
Final: 112 52.83% (100 bytes saved)
Optimizing http://www.loc.gov/static/images/sprite-globalnav.png
Original: 14426
optipng: 12987
advpng: 11505
zopflipng: 11461
Final: 11461 79.45% (2965 bytes saved)
Optimizing http://www.loc.gov/static/images/sprite-loc.png
Original: 9052
optipng: 8073
advpng: 6248
zopflipng: 6240
Final: 6240 68.94% (2812 bytes saved)
Optimizing http://content.wdl.org/10096/thumbnail/192x192.jpg
Original: 12024
mozjpeg: 11938
Final: 11938 99.28% (86 bytes saved)
Optimizing http://content.wdl.org/10608/thumbnail/1403114302/192x192.jpg
Original: 9226
mozjpeg: 9141
Final: 9141 99.08% (85 bytes saved)
Optimizing http://content.wdl.org/11520/thumbnail/1404324088/308x255.jpg
Original: 17531
mozjpeg: 17388
Final: 17388 99.18% (143 bytes saved)
Optimizing http://content.wdl.org/11711/thumbnail/1403114381/308x255.jpg
Original: 17765
mozjpeg: 17535
Final: 17535 98.71% (230 bytes saved)
Optimizing http://content.wdl.org/16891/thumbnail/1435854993/192x192.jpg
Original: 8815
mozjpeg: 8705
Final: 8705 98.75% (110 bytes saved)
Optimizing http://content.wdl.org/16892/thumbnail/1435854993/192x192.jpg
Original: 7953
mozjpeg: 7839
Final: 7839 98.57% (114 bytes saved)
Optimizing http://content.wdl.org/16893/thumbnail/1435854994/192x192.jpg
Original: 9343
mozjpeg: 9222
Final: 9222 98.70% (121 bytes saved)
Optimizing http://content.wdl.org/16894/thumbnail/1435854994/192x192.jpg
Original: 6112
mozjpeg: 5991
Final: 5991 98.02% (121 bytes saved)
Optimizing http://content.wdl.org/179/thumbnail/1403113597/308x255.jpg
Original: 35851
mozjpeg: 35643
Final: 35643 99.42% (208 bytes saved)
Optimizing http://content.wdl.org/2586/thumbnail/1404323686/308x255.jpg
Original: 30458
mozjpeg: 30274
Final: 30274 99.40% (184 bytes saved)
Optimizing http://content.wdl.org/3040/thumbnail/1403113757/308x255.jpg
Original: 14163
mozjpeg: 13907
Final: 13907 98.19% (256 bytes saved)
Optimizing http://content.wdl.org/3251/thumbnail/1404323716/308x255.jpg
Original: 25995
mozjpeg: 25889
Final: 25889 99.59% (106 bytes saved)
Optimizing http://content.wdl.org/3375/thumbnail/1403113774/192x192.jpg
Original: 10914
mozjpeg: 10833
Final: 10833 99.26% (81 bytes saved)
Optimizing http://content.wdl.org/3569/thumbnail/1403113789/192x192.jpg
Original: 12030
mozjpeg: 11945
Final: 11945 99.29% (85 bytes saved)
Optimizing http://content.wdl.org/3569/thumbnail/1403113789/308x255.jpg
Original: 30571
mozjpeg: 30398
Final: 30398 99.43% (173 bytes saved)
Optimizing http://content.wdl.org/7079/thumbnail/1403114055/192x192.jpg
Original: 12292
mozjpeg: 12178
Final: 12178 99.07% (114 bytes saved)
Optimizing http://content.wdl.org/81/thumbnail/1404323630/308x255.jpg
Original: 15803
mozjpeg: 15573
Final: 15573 98.54% (230 bytes saved)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.