Yummy Optimizer for Gorgeous Assets
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for yoga-0.11.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c81487b4ca740acf2b9563b2378dee34b74aeb7c2c8d230edb6344303facca9 |
|
MD5 | 8a5269e08b5f7c83f5938a7d40a872a4 |
|
BLAKE2b-256 | a5566f161f8ebb4a8c1030ce3c73a052f661bfce5a0b9c893dabb03b024d2ec1 |
Hashes for yoga-0.11.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ed5727d3a81306d2a93dbd2ca3e265c7407aa10cf0c295ee4c69fede7bb16c |
|
MD5 | 821050866c1c765b10aa0f588466e168 |
|
BLAKE2b-256 | 5b35a15ef486d781adbf15bc796316e32ff0e61c75cb1c9a311d645c5158a756 |
Hashes for yoga-0.11.1-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d751b0fb485bbcb23c43b66ad5788ea65512dc74aa006da328a3b63cf5dd13 |
|
MD5 | 0dd3bb335364cc978970c24aa7fee0ee |
|
BLAKE2b-256 | ba3a296910d6663726cb51a91901ee979df3aaf19ec3f15d32860607a5bd521f |
Hashes for yoga-0.11.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc50dcaae6d3a4d92871977f7d5078af1374666e4cf49df43570c08f2e7d3398 |
|
MD5 | 53486a117597b8af85eb41a20537b59f |
|
BLAKE2b-256 | 020caf809b1e93dd16fe97cfc02a5c8dfd0f2f0926fc58cf0bdd54734a777fe7 |
Hashes for yoga-0.11.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e98c47f3a1b154bd021f7abdac9cb1491cf45e7c127f0f70d6334bb1fd048e |
|
MD5 | bc38b601741bbed1908679245c29fd4e |
|
BLAKE2b-256 | 9f0fad6509670cf57922163cd7589a3e9827959c97cc63cda1fed49f9428668d |
Hashes for yoga-0.11.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4725971868cd07957fe8b7b8a240dd4981e655d8db8740e9cf45eddf310f44 |
|
MD5 | 44e7a9e2491514afb45689dd51b5022b |
|
BLAKE2b-256 | fdb409555bd0366bd4be4c0c956f3adbd1e58a58f7d20a5f4619556aee1bb964 |
Hashes for yoga-0.11.1-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf3254a16345bcd052b0cac238a28bb9761d1b16a122109c2d6d040fbde8c68 |
|
MD5 | d20d7875f594f616158eca4ce8e285f4 |
|
BLAKE2b-256 | d85bc9095bad1bb38e65e03fced2826c4e17fa355b4360aa7e0d99bb564ba8d9 |
Hashes for yoga-0.11.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a975dc2dc08130e86becc562e01623cbe659cd3d411551145897a55ecb2710 |
|
MD5 | 461fa9aefbcedc55594abafa20f09514 |
|
BLAKE2b-256 | 18808c839e7ef7be58be242f912cd4960989beb732699cd33ebd95b8070ec74b |
Hashes for yoga-0.11.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08dc320b67c361372780fd3e832b9aa502f2ffde0e8c3885cd06a3598d904bf9 |
|
MD5 | ce991e28c7ff9a3f84824f66c8a46ce9 |
|
BLAKE2b-256 | 0f8c762853fa76d6444d82bb829ea7be3f6e0d9a5a7201b5df984bd32aba2775 |
Hashes for yoga-0.11.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eed6aaa62dba0ecee98989440e1c3e64e7705536ef2975ff3edb0a089ca0acf0 |
|
MD5 | 45c5aea898c59dba199b134bb6132f33 |
|
BLAKE2b-256 | 82c848751d4e26199d7deba1f0537f5ad98b9aec39e58a2dea419eee5beac41a |
Hashes for yoga-0.11.1-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b617a9a64018e4a6fe1d930e8c8c839d51ac6d93478cccba2b9664d13719cdb |
|
MD5 | fffb2f6767ce8cfaba688845d14a3faf |
|
BLAKE2b-256 | 3c1bdf223fb128601fe4b0c765f50ef4e5059e728c4c8cd925077888a6417218 |
Hashes for yoga-0.11.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d286dbe42170d9d76257e612037571c6645a05aca227f0c64f428c900449046 |
|
MD5 | 3d08207a3eeff965c1defd6de7665672 |
|
BLAKE2b-256 | 39e23b4b8e04cbac2638a76e43cd4fb34c0fdeb88c7d9470476f33850bac6aea |