Skip to content

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.

Notifications You must be signed in to change notification settings

simonox/maven-optipng-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%