https://github.com/addyosmani/tmi
TMI (Too Many Images) - discover your image weight on the web
https://github.com/addyosmani/tmi
Last synced: 11 months ago
JSON representation
TMI (Too Many Images) - discover your image weight on the web
- Host: GitHub
- URL: https://github.com/addyosmani/tmi
- Owner: addyosmani
- License: apache-2.0
- Created: 2014-10-31T12:01:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T07:36:56.000Z (about 9 years ago)
- Last Synced: 2025-05-14T03:21:09.595Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 261 KB
- Stars: 1,631
- Watchers: 42
- Forks: 44
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wpo - TMI - Too Many Images: discover your image weight on the web. (Miscellaneous / Meetups)
- fucking-awesome-wpo - TMI - Too Many Images: discover your image weight on the web. (Miscellaneous / Meetups)
README
# tmi - too many images [](https://travis-ci.org/addyosmani/tmi)
> 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 [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
* [LG Watch](http://www.lg.com/us/smart-watches)
* [MySpace homepage](http://myspace.com)
* [Mercedes Benz](https://www.mercedes-benz.com/)
* [Apple iMac](http://www.apple.com/imac/)
* [Cyclemon](http://www.cyclemon.com/)
## Local testing
We plan on adding support for testing localhost and local files in the very near future. Until then, [ngrok](https://ngrok.com/) should be able to help get you mostly there.
## API
See [`psi`](https://github.com/addyosmani/psi) if you need a programmatic API for PageSpeed Insights.
## License
Apache-2.0
Copyright 2015 Google Inc