Giter Site home page Giter Site logo

optipng-ant-task's People

Contributors

znerd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

olegas

optipng-ant-task's Issues

Refactor to allow functionality outside Ant

It would be nice if the OptiPNGTask would use an external Ant-independent class for invoking OptiPNG, so that that class can also be used from Java classes directly, without the need for the Ant runtime classes.
Such a class is not available in v0.2.

Optipng change to stderr

As of version 0.7, optipng has changed their default output to using STDERR for everything. See the changelog here (search for STDERR)

http://optipng.sourceforge.net/history.txt

What this means is the optipng-ant-task will no longer work, because the file src/com/pensioenpage/jynx/optipng/OptiPNGTask.java around line 496 looks for any output to stderr and assumes that means the process failed.

The logic needs to be changed to account for this upstream change in optipng.

Add "overwrite" option

Add an "overwrite" option, similar to the "overwrite" option on the standard Ant COPY task.

Support 'level' option

OptiPNG supports the configuration of an optimizaton level via an option -o. The default value of this option is 2, while all integer values in the range 0 to 7 are supported.

This option should also be supported by the OptiPNG Ant task. It's not in v0.2.

Support 'fix' option

OptiPNG supports a fix option, which enables error recovery.

This parameter should also be supported by the Ant task. It's not supported in v0.2.

Support 'quiet' option

Currently, every invocation of the optipng-ant-task sends one message to standard output when running without the -verbose or -quiet Ant options.

It should be possible to suppress this message by passing quiet="true" or quiet="yes" to the task.

The message should then go to the MSG_VERBOSE level instead. So that if the task gets quiet="true", but Ant gets the -verbose option, still all the log messages are sent to the output.

This functionality is not in v0.2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.