Skip to content

About

This maven plugin invokes OptiPNG on a set of images. OptiPNG is a PNG optimizer which reduces the file size of images by running a lossless recompression.

Resources

Stars

8 stars

Watchers

2 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

Introduction

This maven plugin invokes OptiPNG on a set of images. OptiPNG is a PNG optimizer which reduces the file size of images by running a lossless recompression.

For sufficient performance of your build process, this plugin processes images in parallel.

Requirements

It is assumed that you have optipng installed on your system and that the executable is available within your $PATH.

This plugin has only been tested on Linux.

Usage

The following snippet demonstates a sample usage of this plugin.

	<plugin>
		<groupId>de.kabambo</groupId>
		<artifactId>maven-optipng-plugin</artifactId>
		<version>1.0-SNAPSHOT</version>
		<!-- Execute optimize goal of this plugin by default -->
		<executions>
			<execution>
				<goals>
					<goal>optimize</goal>
				</goals>
			</execution>
		</executions>
		<configuration>
			<!-- You can provide a list of directories containing images to be optimized here -->
			<pngDirectories>
				<pngDirectory>${basedir}/src/main/webapp/png</pngDirectory>
			</pngDirectories>
		</configuration>
	</plugin>

About

This maven plugin invokes OptiPNG on a set of images. OptiPNG is a PNG optimizer which reduces the file size of images by running a lossless recompression.

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages