Skip to main content

A graphical interface to convert and optimize JPEG, PNG and WebP images (based on YOGA)

Project description

Github Discord Github Actions Black License

YOGA Image Optimizer is a graphical user interface for YOGA Image that converts and optimizes JPEGs, PNGs and WebP images.

YOGA Image Optimizer screenshot

Limitations

As this is an early development version:

  • PNG Optimization is very, very, VERY slow due to unbalanced ZoppfliPNG optimization options set by YOGA, this will be improved in the future.

Requirements

  • Python >= 3.7,

  • YOGA >= 0.11.0,

  • PyCairo,

  • PyGObject >= 3. 36,

Install

Linux (PyPI)

First, you will need to install some dependencies on your system. On Debian and Ubuntu this can be achieved with the following command:

sudo apt install git build-essential python3 python3-dev python3-pip libgirepository1.0-dev libcairo2-dev pkg-config gir1.2-gtk-3.0

Then install YOGA Image Optimizer using pip:

sudo pip3 install yoga-image-optimizer

Windows

Download either the portable .zip version or the Windows installer from the release page:

Usage

To run YOGA Image Optimizer, just type the following command:

yoga-image-optimizer

You can also pass some image files to open:

yoga-image-optimizer  image1.png  image2.jpeg

Contributing

Questions

If you have any question, you can:

Bugs

If you found a bug, please open an issue on Github with as much information as possible:

  • What is your operating system / Linux distribution (and its version),

  • How you installed the software,

  • All the logs and message outputted by the software,

Pull Requests

Please consider filing a bug before starting to work on a new feature. This will allow us to discuss the best way to do it. This is of course not necessary if you just want to fix some typo or small errors in the code.

Please note that your code must pass tests and follow the coding style defined by the pep8. Flake8 and Black are used on this project to enforce coding style.

Running The Tests

You will first have to install nox:

pip3 install nox

Then you can check for lint error:

nox --session lint

or run the tests:

nox --session test

To run the tests only for a specific Python version, you can use following commands (the corresponding Python interpreter must be installed on your machine):

nox --session test-3.7
nox --session test-3.8
nox --session test-3.9

You can also fix automatically coding style errors with:

nox -s black_fix

Extract, Update or Build Translations

You will first have to install nox:

pip3 install nox

To extract messages and update locales run:

nox --session locales_update

To compile locales, run:

nox --session locales_compile

NOTE: you will need to have xgettext, msgmerge and msgfmt executable installed on your system to run the above commands. On Debian / Ubuntu, they can be installed with the following command:

sudo apt install gettext

Changelog

  • v0.99.0 (beta):

    • Initial release

    • Linux and Windows support

    • Optimizes PNG, JPEG and WebP image formats

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yoga_image_optimizer-0.99.0.tar.gz (57.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page