Skip to content
TMI (Too Many Images) - discover your image weight on the web
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Tweaks to output, drop debug csv Nov 17, 2014
test ES2015ify and require Node.js 4 Feb 14, 2017
.editorconfig ES2015ify and require Node.js 4 Feb 14, 2017
.gitattributes ES2015ify and require Node.js 4 Feb 14, 2017
.gitignore ES2015ify and require Node.js 4 Feb 14, 2017
.travis.yml ES2015ify and require Node.js 4 Feb 14, 2017
LICENSE Initial project Oct 31, 2014
README.md ES2015ify and require Node.js 4 Feb 14, 2017
cli.js ES2015ify and require Node.js 4 Feb 14, 2017
index.js Fix `--verbose` flag Feb 14, 2017
package.json 2.0.0 Feb 14, 2017
screenshot-verbose.png ES2015ify and require Node.js 4 Feb 14, 2017
screenshot.png ES2015ify and require Node.js 4 Feb 14, 2017

README.md

tmi - too many images Build Status

Discover your image weight on the web

Find out the image weight in your pages, compare to the BigQuery quantiles and discover what images you can optimize further.

Install

$ npm install --global tmi

Usage

$ tmi --help

  Usage
    $ tmi <url> [options]

  Options
    --verbose    Detailed summary
    --key        Google API Key. By default the free tier is used
    --strategy   Strategy to use when analyzing the page: mobile|desktop
    --locale     Locale results should be generated in
    --threshold  Threshold score to pass the PageSpeed test

  Example
    $ tmi todomvc.com --strategy=desktop

Verbose mode

Verbose mode will show you a detailed summary of which images needs improving.

Good test URLs

Local testing

We plan on adding support for testing localhost and local files in the very near future. Until then, ngrok should be able to help get you mostly there.

API

See psi if you need a programmatic API for PageSpeed Insights.

License

Apache-2.0 Copyright 2015 Google Inc

You can’t perform that action at this time.