Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C cssembed
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Nicholas C. Zakas
  • cssembed
  • Wiki
  • Home

Home · Changes

Page history
Migrated from home v14 authored Sep 13, 2010 by nzakas's avatar nzakas
Hide whitespace changes
Inline Side-by-side
Home.textile
View page @ 1024ebe5
...@@ -21,6 +21,8 @@ bc.. Usage: java -jar cssembed-x.y.z.jar [options] [input file] ...@@ -21,6 +21,8 @@ bc.. Usage: java -jar cssembed-x.y.z.jar [options] [input file]
Global Options Global Options
-h, --help Displays this information. -h, --help Displays this information.
--charset <charset> Character set of the input file. --charset <charset> Character set of the input file.
--mhtml Enable MHTML mode.
--mhtmlroot <root> Use <root> as the MHTML root for the file.
-v, --verbose Display informational messages and warnings. -v, --verbose Display informational messages and warnings.
--root <root> Prepends <root> to all relative URLs. --root <root> Prepends <root> to all relative URLs.
-o <file> Place the output into <file>. Defaults to stdout. -o <file> Place the output into <file>. Defaults to stdout.
...@@ -35,6 +37,18 @@ bc. java -jar cssembed-x.y.z.jar --root http://www.nczonline.net/images styles.c ...@@ -35,6 +37,18 @@ bc. java -jar cssembed-x.y.z.jar --root http://www.nczonline.net/images styles.c
This causes all image URLs to be prepended with @http://www.nczonline.net/images@ before attempting resolution (this happens only for those URLs that don't already have "http://" at the beginning. This causes all image URLs to be prepended with @http://www.nczonline.net/images@ before attempting resolution (this happens only for those URLs that don't already have "http://" at the beginning.
h1. MHTML Support
Version 0.3.0 introduces initial support for generating MHTML CSS files (for more information on MHTML files, see "MHTML - when you need data: URIs in IE7 and under":http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/). When you specify the @--mhtml@ option, this puts CSSEmbed into MHTML mode and the resulting CSS file is generated for use with Internet Explorer 7 and lower using the format specified in the linked article.
You must specify a root URL to use in the generated file. As per MHTML format, each @url()@ must be filled in with a fully-qualified URL. Since there is no way for CSSEmbed to guess where the resulting output file will reside, you need to pass in that information using @--mhtmlroot@, such as:
@java -jar cssembed-x.y.z.jar --mhtml --mhtmlroot http://www.example.com/styles/ -o styles_ie.css styles.css@
The filename used inside of the resulting CSS file will be @http://www.example.com/styles/styles_ie.css@.
A note about IE on Vista: MHTML doesn't always work with default settings. Please read "Mhtml doesn't work in Vista IE7":http://www.eggheadcafe.com/software/aspnet/33808138/mhtml-doesnt-work-in-vis.aspx for more information.
h1. Dependencies h1. Dependencies
When downloading and using CSSEmbed, you can download one of two files: When downloading and using CSSEmbed, you can download one of two files:
...@@ -67,6 +81,25 @@ at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) ...@@ -67,6 +81,25 @@ at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
p. This means that you're attempting to run CSSEmbed on an earlier version of the JVM. CSSEmbed requires Java 1.5 to execute. p. This means that you're attempting to run CSSEmbed on an earlier version of the JVM. CSSEmbed requires Java 1.5 to execute.
h1. Changelog
h2. 0.3.1
* Cleaned up MHTML support.
h2. 0.3.0
* Initial MHTML support based on dchaplinsky's patch. "MHTML support (patch inside)":http://github.com/nzakas/cssembed/issues/#issue/3
h2. 0.2.7
* Added dchaplinsky's patch for warning about duplicate images.
* Fixed "Specifying the same input and output results in empty file":http://github.com/nzakas/cssembed/issues/#issue/5.
h2. 0.2.6
* First public release.
h1. Copyright and License h1. Copyright and License
Copyright (C) 2009 Nicholas C. Zakas. All rights reserved. Copyright (C) 2009 Nicholas C. Zakas. All rights reserved.
......
Clone repository
  • Changelog
  • DataURI
  • Home