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.1.tar.gz
(3.0 kB
view details)
Built Distribution
sixfoh-0.1.2.1-py2.7.egg
(5.7 kB
view details)
File details
Details for the file sixfoh-0.1.2.1.tar.gz
.
File metadata
- Download URL: sixfoh-0.1.2.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8279e890e68604e7b37d315409264651ebc97392137e41eb47116816d6d1118f |
|
MD5 | d5344a2a81c30c7ed3827174efafe70a |
|
BLAKE2b-256 | bbe3a979540ff30eb0bdc7252fb8f270080af651f0916178867fd0ab78a543f9 |
File details
Details for the file sixfoh-0.1.2.1-py2.7.egg
.
File metadata
- Download URL: sixfoh-0.1.2.1-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2018b38c6cc1d6b7ca812c4cb26c907a12be6885f9e5b3ed9bba071a3c2bdeae |
|
MD5 | e53ee8f3dbe7be798a58dc7ae6343918 |
|
BLAKE2b-256 | a5e7bc0a2f103fefceee2c2d514108668c9dfed93a1d558b6c92cc2ff609c174 |