GithubHelp home page GithubHelp logo

pngoptim's Introduction

PNGOptim

PNGOptim is a CMD Batch file (Why?) for optimizing PNG files, aiming at good quality(small file size) with less effort(less tries hence runs faster).

It's inspired by similar projects such as ImageOptim, Trimage, etc.. However, PNGOptim doesn't follow all other projects' brute way, instead it only uses PNGOut and Zopflipng (Why?) in a smart way.

PNGOptim runs generally faster and the output is generally smaller because it's SMART not BRUTE.

FEATURE

  • Multi-CPU ready
  • Smart approach(not brute)
  • Multi-Files at one time
  • Safe for multiple instances

Usage

  1. Download the batch file (you can right-click and choose save).
  2. Ensure you have a copy of PNGOut, Zopflipng and DeflOpt and they are accessable(you can just put the exe files to the same directory as the batch file)
    As a respect of the authors, I DON'T contain the exe files in this project
  3. Now use it to optimize PNG files. They are optimized in-place.
  • Drag'n'Drop PNGs to the batch file or d'n'd folders.
  • Use the syntax "pngoptim pngfile1 pngfile2 pngfile3 pngfile4 ...".
  • Just run the command to see more syntax.

Limit

  1. On XP Home/2000, wmic is not present, assuming 2 logical CPUs.
    • Search for "InitParallel 2" and replace 2 in case you want to change the numbers on such OSes.
  2. Unicode paths that is not valid in current code page fails.
  3. As the sychronization is file-based. There is an astronomically small chance the synchronation goes broken if you run multiple instances at the same time.
    However it's not recommended to run multiple instances and it's not needed, you doesn't benefit from doing so.

TODO

  1. log in verbose mode.

pngoptim's People

Contributors

yumeyao avatar thejaredwilcurt avatar

Stargazers

Ronggur Mangaraja Habibun avatar Mikkel O. Laursen avatar Dmitry avatar Hamza avatar  avatar Brian Burns avatar Luke Cavanagh avatar  avatar M Haidar Hanif avatar Erik Karwatowski avatar  avatar

Watchers

 avatar  avatar

Forkers

thejaredwilcurt

pngoptim's Issues

Pngoptim fails

Hello, I have given pngoptim a try, but I have ran into errors.
I tried to optimize a png file, and for a while it was working, then suddenly failed.(for that time it was using PNGOUT)
Log: http://hastebin.com/jiwimizusi.tex
I have translated the error messages the best I could.( I use Win7x64 and this copy has all the system messages localized to Hungarian)
The folder containing the .cmd file and the .exes is located at C:\pngoptim so no unicode chars there.
My username does not contain unicode chars either. So pngoptim should work fine, but it doesnt.

Where can I get DeflOpt?

The link on the front page leads to some completely unrelated website, and a quick google search doesn't seem to give any relevant results either.

Could you include this dependency on the repo?

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.