Giter Site home page Giter Site logo

zevilz / zimageoptimizer Goto Github PK

View Code? Open in Web Editor NEW
129.0 129.0 20.0 317 KB

Simple image optimizer for JPEG, PNG and GIF images on Linux, MacOS and FreeBSD.

License: MIT License

Shell 98.39% Dockerfile 1.61%
bash freebsd image-compression image-optimization jpeg jpeg-image-compression linux optimization png png-compression

zimageoptimizer's Introduction

zimageoptimizer's People

Contributors

incrementing avatar varunbatrait avatar zevilz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

zimageoptimizer's Issues

cannot optimized

sudo bash zImageOptimizer.sh -p /home/pi/xulyanh/

Optimizing...
[1/1] /home/pi/xulyanh/799795.jpg... stat: cannot read file system information for '%Lp': No such file or directory
chmod: invalid mode: ‘File:’
Try 'chmod --help' for more information.
[NOT OPTIMIZED] 984.9Kb

Additional options: optimize (1) files directly & (2) non-destructive?

Would be great to have two additional options:

(1) -f | --file <filepath> — direct path to a single (or multiple?) png/jpg/gif file(s) instead of directory path using -p

(2) -x | --non-destructive — keep the original file and write the new optimized file as <filename>-optimized.<extension> in the same working directory … alternatively: keep the original file as <filename>-original.<extension> … you'd have to be able to execute this together with e.g. -q and -l etc.

Not folder only file?

Hi how can optimize specific file? Not complete directory? Also script can dedect its jpeg or png?

Feature: use xattrs to tag "optimised" files?

After optimization is finished, the script deletes this file (or deletes current path to working directory from the file with several parallel optimizations). This is done to prevent cycling optimization and avoid conflicts during optimization for longer than period between optimizations.

There was a lot of thought put into working around re-optimising previously processed files.

I think xattrs pose a good solution to mark the files once processes to not be touched again. What do you think?

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.