Skip to main content

HTML stylesheet inliner, replaces resources with data-uri

Project description

inline-html

This script parses an input HTML and

  • inlines all images in <img> tags with data-uri
  • inlines all external stylesheets references using <link rel=”stylesheet” type=”text/css”…>
  • replaces all CSS references to external files (url(..)) with data-uri

Requirements

  • works with Python 2.7 and 3.4/3.5

Usage

bin/inline-html --in-file in.html --out-file out.html

License

  • GPL 2 (see LICENSE.txt)

Author

Andreas Jung/ZOPYX
www.zopyx.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
inline-html-1.0.0.zip (467.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page