yoga/README.rst

42 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2017-12-08 10:33:10 +01:00
YOGA - Yummy Optimizer for Gorgeous Assets
==========================================
2018-01-15 17:11:24 +01:00
.. figure:: ./logo.png
:alt:
**YOGA** is a command-line tool and a library that can:
2018-01-15 16:55:57 +01:00
* convert and optimize images from various format to JPEG and PNG,
2018-01-17 09:33:28 +01:00
* convert and optimize 3D models from various formats to `glTF and GLB`_.
2018-01-15 17:22:07 +01:00
**(NOT YET IMPLEMENTED)**
2018-01-15 16:55:57 +01:00
2018-01-15 17:22:07 +01:00
**Images** are opened using Pillow_ and optimized using Guetzli_ (for JPEGs) and
Zopflipng_ (for PNGs).
2018-01-15 16:55:57 +01:00
2018-01-15 17:22:07 +01:00
**3D Models** are converted and optimized using assimp_. If models contain or
2018-01-15 16:55:57 +01:00
reference images, they are processed by YOGA's image optimizer.
Convert and optimize an image from CLI::
2018-01-15 17:11:24 +01:00
yoga image input.png output.png
2018-01-15 16:55:57 +01:00
yoga image --output-format=jpeg --jpeg-quality=84 input.png output.jpg
yoga image --help
Convert and optimize a 3D model from CLI::
# TODO (not implemented yet)
yoga model --help
2018-01-15 17:22:07 +01:00
2018-01-17 09:33:28 +01:00
.. _glTF and GLB: https://www.khronos.org/gltf/
2018-01-15 17:22:07 +01:00
.. _Pillow: https://github.com/python-pillow/Pillow
.. _Guetzli: https://github.com/google/guetzli
.. _Zopflipng: https://github.com/google/zopfli
.. _assimp: https://github.com/assimp/assimp
2018-02-19 16:10:09 +01:00
Changelog
---------
* **0.9.0-beta1:** First release (only GLB output for models, no image auto
output format)