Code Monkey home page Code Monkey logo

tifoto's Introduction

tifoto Version License

tifoto is a simple tool for photo and video mass-resizing for emails.

Features

tifoto currently does the following:

  • Re-compress photos using JPEG quality 70% and videos using Webm with VP9 for video and Opus for audio.
  • Resize the largest dimension of photos to 3840 pixels and videos to 720p.
  • Store minified photos and videos in /tmp/tifoto so that they are deleted on reboot.
  • Use all available CPU cores on the computer to process several photos at the same time.

It is available in English and in French.

Installation

tifoto currently requires Python 3, ImageMagick for photos, ffmpeg for videos and both Kdialog and qdbus (both available with KDE) in graphical mode or neither of them in console mode.

Run sudo install.sh.

Usage

Run tifoto <all photos and videos to resize> in a terminal or use the “Resize photos and videos using tifoto” action in Dolphin's context menu.

Dolphin menu preview

Progress dialog preview

Success dialog preview

Roadmap

tifoto would like to add the following features:

  • Support other graphical environments than KDE.
  • Use Guetzli instead of libjpeg / libjpeg-turbo.
  • Use AV1 instead of VP9.

Contributing and reporting bugs

Contributions are welcome through GitHub pull requests.

Please report bugs and feature requests on GitHub issues.

License

tifoto is copyright (C) 2017-2023 Jérémie Roquet [email protected] and licensed under the ISC license.

tifoto's People

Stargazers

 avatar

Watchers

 avatar  avatar

tifoto's Issues

Add support for PDF

This can give surprisingly good results:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$OUT $IN

Use the original files if they aren't much bigger

If the file size hasn't been reduced by more than, say, 10%, use the original to avoid quality loss for too little size improvement. This will also avoid having bigger files.

If possible, also avoid resizing photos and videos up: if the resolution is lower than desired, keep it as is and only recompress with the appropriate quality settings.

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.