Image2CSS is licensed under Apache 2.0, please see LICENSE file.
Use of this software indicates you agree to the following as well : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This product includes software developed by The Apache Software Foundation (http://www.apache.org/).
From root module, build the distribution:
./gradlew clean installDist
The installed distribution found in the image2css-cli module includes scripts for *nix and Windows:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli
or
./image2css-cli/build/install/image2css-cli/bin/image2css-cli.bat
- Convert a single local or remote file or an entire local directory of images to data URI CSS
- Generate CSS file
- Generate HTML demonstrating generated CSS classes
- Output data URI to console
- Shell and bat scripts included
Display the help screen:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli
Convert remote PNG-image to data URI and output to CSS and HTML files:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli \
-f https://upload.wikimedia.org/wikipedia/commons/0/0f/Spotorno-IMG_1772.JPG \
-o result.css \
-h result.html
Convert PNG-image to data URI and output to CSS and HTML files:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli \
-f ./image2css-cmn/src/test/resources/test.png \
-o result.css \
-h result.html
Convert PNG-image to data URI and output to console:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli \
-f ./image2css-cmn/src/test/resources/test.png \
-syso
Convert PNG-images in directory to data URI and output to CSS and HTML files:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli \
-f ./image2css-cmn/src/test/resources/ \
-i png \
-o result.css \
-h result.html
Convert GIF & JPG images in directory to data URI and output to CSS and HTML files:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli \
-f ./image2css-cmn/src/test/resources/ \
-i gif jpg \
-o result.css \
-h result.html
Convert GIF & JPG images in directory to data URI and output to CSS and HTML files:
./image2css-cli/build/install/image2css-cli/bin/image2css-cli \
-f ./image2css-cmn/src/test/resources/ \
-i gif jpg \
-o result.css \
-h result.html