polymer
- Image spriting for web applications
polymer
[--no-colour] COMMAND [ARGUMENTS]
Polymer
is a tool for creating sprite images which combine many smaller
sources into a single larger image. Spriting allows you to reduce the
number of HTTP requests required to load a web page, and as such can
result in reduced load times.
Polymer also creates the necessary CSS to position the sprite within an HTML element so that only the desired source appears. Those writing their website or application in Ruby can make use of Polymer's Sass builder which creates a Sass mixin, further simplifying the use of your sprites.
In order to reduce the amount of data transferred to clients loading your pages, Polymer optimises the sprites it generates using PNGOUT, OptiPNG, and PNGCrush.
--no-colour
--no-color
.Creates a new Polymer project in the current directory.
Creates the sprites specified by your .polymer
or polymer.rb
file,
optimises the images, and creates any requested CSS or Sass files.
Given paths to PNG files as arguments, optimises them to reduce the
filesize as much as possible without compromising quality. Also
available as polymer optimize
.
Shows the position of a source within a sprite, and provides CSS which you can use in your own stylesheets.
Detailed documentation for each of Polymer's commands can be viewed with
the polymer help
command. For example, to view the documentation for
the bond
command, run polymer help bond
.
polymer(5) (polymer help .polymer
) provides a description of the
.polymer
configuration file format.