Skip to main content

Yummy Optimizer for Gorgeous Assets

Project description

Github Discord PYPI Version Build Status License

YOGA is a command-line tool and a library that can:

  • convert and optimize images from various format to JPEG and PNG,

  • convert and optimize 3D models from various formats to glTF and GLB.

Images are opened using Pillow and optimized using Guetzli (for JPEGs) and Zopflipng (for PNGs).

3D Models are converted and optimized using assimp. If models contain or reference images, they are processed by YOGA’s image optimizer.

EXAMPLE: Converting and optimizing an image from CLI:

yoga  image  input.png  output.png
yoga  image  --output-format=jpeg  --jpeg-quality=84  input.png  output.jpg
yoga  image  --help

EXAMPLE: Converting and optimizing a 3D model from CLI:

yoga  model  input.fbx  output.glb
yoga  model  --no-graph-optimization  --no-meshes-optimization  --image-output-format=jpeg  --image-jpeg-quality=84  input.fbx  output.glb
yoga  model  --help

Install

Documentation

Changelog

  • 0.11.1:

    • Automated workflow for deploying the PyPI packages

    • Wheel are now distributed on PyPI

  • 0.11.0:

    • Allows to build YOGA on Windows

    • Scripts and workflow to build Windows standalone versions

  • 0.10.2:

    • Updates assimp and python libraries

  • 0.10.1:

    • Fixes an issue that occures when output file does not already exist

  • 0.10.0:

    • Prevent overwriting of the output file when an error occurs (#17)

    • Unicode path support (#16)

  • 0.10.0b1:

    • Verbose and quiet modes,

    • Allows to pass textures from memory instead of looking on the filesystem,

    • Allows to pass a fallback texture instead of raising an error.

  • 0.9.1b1:

    • Automatic selection of the output format (png or jpeg),

    • Prevent duplication of textures that are shared between materials,

    • Fixes Windows paths of textures.

  • 0.9.0b1: First release (only GLB output for models, no image auto output format)

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-0.11.1.tar.gz (2.6 MB view hashes)

Uploaded Source

Built Distributions

yoga-0.11.1-cp39-cp39-win_amd64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

yoga-0.11.1-cp39-cp39-manylinux2010_x86_64.whl (28.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

yoga-0.11.1-cp39-cp39-manylinux2010_i686.whl (28.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

yoga-0.11.1-cp39-cp39-macosx_10_14_x86_64.whl (8.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

yoga-0.11.1-cp38-cp38-win_amd64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

yoga-0.11.1-cp38-cp38-manylinux2010_x86_64.whl (28.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

yoga-0.11.1-cp38-cp38-manylinux2010_i686.whl (28.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

yoga-0.11.1-cp38-cp38-macosx_10_14_x86_64.whl (8.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

yoga-0.11.1-cp37-cp37m-win_amd64.whl (2.3 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

yoga-0.11.1-cp37-cp37m-manylinux2010_x86_64.whl (28.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

yoga-0.11.1-cp37-cp37m-manylinux2010_i686.whl (28.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

yoga-0.11.1-cp37-cp37m-macosx_10_14_x86_64.whl (8.6 MB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

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