https://github.com/shift/git_png_optimise
A Rails plugin / Git hook that optimises PNGs upon adding or updating.
https://github.com/shift/git_png_optimise
Last synced: 6 months ago
JSON representation
A Rails plugin / Git hook that optimises PNGs upon adding or updating.
- Host: GitHub
- URL: https://github.com/shift/git_png_optimise
- Owner: shift
- License: mit
- Created: 2008-10-01T10:10:10.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T09:15:25.000Z (almost 3 years ago)
- Last Synced: 2024-04-15T14:13:07.302Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 99.6 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
GitPngOptimise
==============This plugin is for optimising PNG's upon commit into a git repository, it backs up your current pre-commit hook if there is one and replaces it, your git pre-commit hook located in .git/hooks/pre-commit.
The plugin supports OptiPNG (packaged with the plugin, for OS X) and PNGOUT available from http://advsys.net/ken/utils.htm
Installation
============open .git/hooks/pre-commit and change OptiPNG flags as required.
Howto install PNGOUT
====================Drop the binary file into the plugins bin directory named 'pngout' and 'chmod +x pngout'
Usage
=====git add public/images/header.png
git commit -m "Look ma no hands."Copyright (c) 2008 Vincent Palmer & Piers Cawley, released under the MIT license