GithubHelp home page GithubHelp logo

ti-ff's Introduction

Tenacious Image-File Foreshortener (TI-FF)

This is a Z shell script for replacing all TIFF files in a directory with compressed PNG files that have nearly the same information.

purpose

This utility is intended for use with

usage

usage: ti-ff [ -h | --help | -? ] [<directory>]

This script finds all TIFF files in the current directory (or the provided directory) and converts them all to PNGs using LibTIFF’s tiff2png command. The resulting PNGs are then compressed with OptiPNG. The TIFFs for which this process is successful are deleted. Please note that, by design, this script strips all TIFF and PNG metadata from the output files; however, file access and modification times are copied from the deleted TIFFs to the output PNGs.

dependencies

This script runs only in Z shell (Zsh) and directly relies on the following utilities:

  • LibTIFF’s tiff2png
  • OptiPNG
  • file (with the --mime-type option)
  • touch (with the -r option)
  • printf
  • wc

Starting with an argument of -h, --help, or -? causes this message to be printed to stdout with no further actions.

status codes

  1. success
  2. optional directory argument not found
  3. process interrupted by SIGINT or SIGTERM
  4. failure in at least one file

ti-ff's People

Contributors

rmw4269 avatar

Watchers

 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.