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 Distribution
sixfoh-0.1.2.tar.gz
(3.0 kB
view details)
Built Distribution
sixfoh-0.1.2-py2.7.egg
(5.7 kB
view details)
File details
Details for the file sixfoh-0.1.2.tar.gz
.
File metadata
- Download URL: sixfoh-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4d91836244b5e993c99afcb4ec67c8f2fa73cf1dacce1a1c1502c00204000e |
|
MD5 | a21068ef518ef71d6444f6e9f6fecd21 |
|
BLAKE2b-256 | bee8ae30cac5905f7cadbb5c5fd36de200ef7eac284526c6cc6093d36781ead1 |
File details
Details for the file sixfoh-0.1.2-py2.7.egg
.
File metadata
- Download URL: sixfoh-0.1.2-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74100df7c3a0b3fcde1698d80b5c7ef1bf22630c04da7e39b4f17c7c11de5206 |
|
MD5 | 8e691ee581aaebe516330abede3d0a57 |
|
BLAKE2b-256 | 26a8be620497921eb278952a39685613a724768b2955b15b08a2a33e3e74b1e2 |