org.eclipse.ui.images provides the a Maven generator of svg images located in the org.eclipse.ui.images plug-in.
Install the org.eclipse.ui.images.renderer plug-in:
cd org.eclipse.ui.images.renderer mvn clean install
After the renderer plugin is installed, change into the root of the images project:
cd org.eclipse.ui.images
Finally, execute the icon render mojo with:
mvn org.eclipse.ui:org.eclipse.ui.images.renderer:render-icons
This renders all of the svg icons in “eclipse-svg” into the “eclipse-png” folder of the org.eclipse.ui.images project, maintaining the directory structure (i.e. eclipse-svg/icondir will be rendered into org.eclipse.ui.images/eclipse-png/icondir).
Supported runtime arguments (e.g mvn -Declipse.svg.scale=2 ...):
eclipse.svg.scale - an integer that is used to scale output images (e.g. 2 will render a 16x16 svg at 32x32) eclipse.svg.renderthreads - an integer that specifies how many threads to use simultaneously while rendering eclipse.svg.sourcedirectory - a string that specifies the directory name where the SVGs are taken from (defaults to “eclipse-svg”) eclipse.svg.targetdirectory - a string that specifies the directory name where the PNGs are written to (defaults to “eclipse-png”)
Once the icon sets have been rendered, you can create galleries for evaluation and feedback with the gallery mojo:
mvn org.eclipse.ui:org.eclipse.ui.images.renderer:render-galleries
This will create a set of galleries and gif comparisons comprised of the newly rendered icons, located in the target/ output directory.
Supported runtime arguments :
eclipse.svg.pngdirectory - a string that specifies the directory name where the PNGs are taken from (defaults to “eclipse-png”) eclipse.svg.gifdirectory - a string that specifies the directory name where the GIFs are taken from (defaults to “eclipse-gif”)