Skip to main content

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.

image:: 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.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

sixfoh-0.1.2.3-py2.7.egg (5.7 kB view details)

Uploaded Source

File details

Details for the file sixfoh-0.1.2.3.tar.gz.

File metadata

  • Download URL: sixfoh-0.1.2.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sixfoh-0.1.2.3.tar.gz
Algorithm Hash digest
SHA256 8eddeeb02a310be009a11e82d310d1e54ea449881b087afc7e26cca5c2645dc1
MD5 3fe58736b98bf1618fa2bb94f4d5c935
BLAKE2b-256 461fbead8efa3daa93e57427661708955f9535b6532c2fcd70e3d29a40bd2b83

See more details on using hashes here.

File details

Details for the file sixfoh-0.1.2.3-py2.7.egg.

File metadata

  • Download URL: sixfoh-0.1.2.3-py2.7.egg
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sixfoh-0.1.2.3-py2.7.egg
Algorithm Hash digest
SHA256 47409b30edae31cd5acb3134f4e1284d5fd128de9b12383caed2584bf96f2b16
MD5 6f58567ca9206f8828ed58630f7d7e37
BLAKE2b-256 829ef6538c8c3d05d745c575b269a44f76bf0c6d5e4f88810a32bf30273ea08d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page