Code Monkey home page Code Monkey logo

pngoo's Introduction

英文版README 中文版README

The modifications of this forked version of PNGoo:

  • Update to .NET Framework 4.7.2.

  • Multi -folder selection (multiple selection, recursive selection, including all the .png format files in all sub -directory).

  • The original file will not be covered if the compressed file size is larger and the original file is not encoded in PNG format, unless the check box of Force PNG is checked.

  • Added support for arguments during command-line execution:

    • "-p" / "-Path": The target file path or directory to be compressed. Both specific file path and directory path are supported. Multiple paths supported, use '|' as the separator.
    • "-OutputPath": The output path for compressed PNG files. If this parameter is not provided, the output path is the original file path, which means origin files will be overwritten.
    • "-ForcePng": This option forces files to be compressed into PNG format, even if the original file is not PNG encoded. This will result in non-PNG encoded images (those with a .png extension but not PNG encoded) being overwritten, even if the compressed image takes up more space.
    • "-OverwriteIfLarger": Overwrite the origin file even if the compressed image takes up more space.

    Example: PNGoo.exe -Path="C:/YourPngFilesPath/" -OutputPath="C:/YourPngOutputPath/" -ForcePng="false" -OverwriteIfLarger="false"

PNGoo.exe

The extension of PNGoo for Unity:

  • Place the 'PNGooTools.cs' script file from the 'ExtensionForUnity' directory into the Editor directory of your Unity project. Modify the PNGooPath in PNGooTools.cs to the location of your PNGoo program, and also put the PNGoo.exe and its dependent files into your Unity project.
  • The usage is as follows:
    • Select the png image or directory you want to compress, right-click and choose 'PNGoo -> Compress' to complete the compression. Alternatively, you can click on the menu 'Tools -> PNGoo -> Compress' to complete the compression. The Unity process will continue to wait until PNGoo is closed. Simultaneous selection of PNG images and folders is supported, multiple selections are allowed.
    • Click on the menu 'Tools -> PNGoo -> Open PNGoo' to open the PNGoo program. This command will not cause the Unity process to wait.

Compress

Open PNGoo

pngoo's People

Contributors

h-j-f avatar hiddenist avatar

Stargazers

Maus avatar Paul Reed avatar

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.