Generates base sixfoh-encoded images for yer websites.
Project description
sixfoh
Generates base sixfoh-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
- -L
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)
- -S
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)
- -f
Force output and ignore warnings.
—
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
Built Distribution
File details
Details for the file sixfoh-0.1.2.2.tar.gz
.
File metadata
- Download URL: sixfoh-0.1.2.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77fe2010641166b9703ad64509a29c29e8868a1f2ab53b155f82c6b636b2136f |
|
MD5 | 5bdff80938bec180dce4a009fa24cd6b |
|
BLAKE2b-256 | 1507b622e0401195081bf0482f304e51462ba9fe96da7d03510143e79b707a7b |
File details
Details for the file sixfoh-0.1.2.2-py2.7.egg
.
File metadata
- Download URL: sixfoh-0.1.2.2-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ffea6869de6b3b67430b91499cfba401daea17b74e506b31020baead24ae0f |
|
MD5 | 035436288cdbf57144fc399a8d30b65d |
|
BLAKE2b-256 | 29ebbdc74f8da001e7bb71e28afb7e8486014f7270ab9ec7a1dc3edb45a6cbb6 |