Generates base sixfoh-encoded images for yer websites.
Project description
sixfoh
======
Generates base [sixfoh](http://youtu.be/XfkDnsxc-zE)-encoded images for yer websites.
Installation
============
pip install sixfoh
Usage
=====
Give sixfoh a some images to convert to base64:
sixfoh datauri/*.png
If no files are given, it will look for images in the current directory.
Usage with Less
---------------
Pipe your output with the `--less` flag and it will prepend Less variables to import into
your CSS.
sixfoh --less myimage.png > datauri.less
I usually slice up all my icons in Photoshop and output them into a "data-uri" folder.
sixfoh -L data-uri/* > datauri.less
Import it and use it:
@import "datauri.less";
#Logo {
background-image: @myimage;
}
You do the same for Sass with the `--scss` flag.
Options
-------
<dl>
<dt>-L</dt>
<dd>Writes images into a group of LessCSS variables, to be included in a stylesheet or written to a .less file to be imported. (alias: --less)</dd>
<dt>-S</dt>
<dd>Writes images into a group of Sass variables, to be included in a stylesheet or written to a .scss file to be imported. (alias: --scss)</dd>
<dt>-f</dt>
<dd>Force output and ignore warnings.</dd>
</dl>
---
![lol](http://www.gifmania.co.uk/cars/3D/lowrider.gif)
======
Generates base [sixfoh](http://youtu.be/XfkDnsxc-zE)-encoded images for yer websites.
Installation
============
pip install sixfoh
Usage
=====
Give sixfoh a some images to convert to base64:
sixfoh datauri/*.png
If no files are given, it will look for images in the current directory.
Usage with Less
---------------
Pipe your output with the `--less` flag and it will prepend Less variables to import into
your CSS.
sixfoh --less myimage.png > datauri.less
I usually slice up all my icons in Photoshop and output them into a "data-uri" folder.
sixfoh -L data-uri/* > datauri.less
Import it and use it:
@import "datauri.less";
#Logo {
background-image: @myimage;
}
You do the same for Sass with the `--scss` flag.
Options
-------
<dl>
<dt>-L</dt>
<dd>Writes images into a group of LessCSS variables, to be included in a stylesheet or written to a .less file to be imported. (alias: --less)</dd>
<dt>-S</dt>
<dd>Writes images into a group of Sass variables, to be included in a stylesheet or written to a .scss file to be imported. (alias: --scss)</dd>
<dt>-f</dt>
<dd>Force output and ignore warnings.</dd>
</dl>
---
![lol](http://www.gifmania.co.uk/cars/3D/lowrider.gif)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file sixfoh-0.1.1.macosx-10.6-x86_64.tar.gz
.
File metadata
- Download URL: sixfoh-0.1.1.macosx-10.6-x86_64.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4855915050b3cbfa185d7e007e180c1ec7d39f6c6d1bc3e7a24e8c27c5c8641e |
|
MD5 | 4f721152041f6107d7d0e0516f12da7a |
|
BLAKE2b-256 | 22a25825e615db5d004cf80a6e89c0dcf41419155b533d60845981c781a4f0d2 |