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

Uploaded Source

Built Distribution

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for sixfoh-0.1.3.tar.gz
Algorithm Hash digest
SHA256 91e3c9e7d9b62669a80f3cc2e5f1e5893031ebdbc4aa859f46014593074a8104
MD5 db710101ee6d4dc78bcaaa4b53c16a6d
BLAKE2b-256 e9beab247439c43465566f3def7af565c83d6a90b42bb1e519dc43965f40f886

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sixfoh-0.1.3-py2.7.egg
Algorithm Hash digest
SHA256 92144cb98c27f6b44ac7f418f52ca760dc6f71d1fa5447dab8f78c4657838845
MD5 2af6620e80587fdf341f03107666c8b8
BLAKE2b-256 3902763f34ac9d55e899b7f3ed1fdb2e9d0f8a8853bde00aecddef0228c99826

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