Encode to JPEG XL, AVIF, WebP, and JPEG.
Generate fully compatible JPEGs with up to 35% better compression ratio.
Achieve exceptional quality at a modest size with JPEG XL and AVIF.
Encode images in parallel to speed up the process. Control how many threads to use for encoding.
Losslessly transcode JPEG to JPEG XL, and reverse the process when needed.
Scale down images to resolution, percent, shortest (and longest) side, or even file size.
[!NOTE] The recommended way of using XL Converter is through the official binary releases. The building process is time-consuming and tedious.
Install:
Add python.exe to PATH
)Clone the repo.
git clone -b stable --depth 1 https://github.com/JacobDev1/xl-converter.git
cd xl-converter
Setup venv
.
python -m venv env_build
env_build\Scripts\activate.bat
pip install -r requirements.txt
Install redistributable
Run the application
python main.py
You can also build it.
python build.py
Install packages.
sudo apt update
sudo apt install git make curl fuse p7z-full
Install xcb QPA dependencies.
sudo apt install '^libxcb.*-dev' libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
Install pyenv via Automatic installer then add it to shell
Install Python build packages.
sudo apt install wget build-essential libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev liblzma-dev
Build and setup Python 3.11.9
.
pyenv install 3.11.9
pyenv global 3.11.9
Clone and set up the repo.
git clone -b stable --depth 1 https://github.com/JacobDev1/xl-converter.git
chmod -R +x xl-converter
cd xl-converter
Create and activate a virtual environment.
python -m venv env_build
source env_build/bin/activate
Install Python dependencies
pip install -r requirements.txt
Now, you can run it.
python main.py
or build it.
python build.py
To build XL Converter, you need to provide various binaries. This can be quite challenging.
[!TIP] Use the official builds as a reference.
Libraries:
v0.10.2
v1.0.4
(AOM 3.9.1
)7.* Q16-HDRI
12.92
v0.9.2
The following static binaries are required:
Move them to xl-converter/bin/linux
.
The following static binaries are required:
exiftool\
with exiftool.exe
and exiftool_files\
Move them to xl-converter\bin\win
.
[!NOTE]
libjxl
does not feature UTF-8 support on Windows. To enable it, embed this manifest into each EXE withmt.exe
from Visual Studio.
[!IMPORTANT] This project runs on Python
3.11
. Other versions are not supported.[!NOTE] Don't forget
--depth 1
when runninggit clone
to avoid large files.
Create a test environment.
python -m venv env_dev
source env_dev/bin/activate
pip install -r requirements.txt
pip install -r requirements_test.txt
Run tests
python test.py
You can control which tests to run. Learn more with python test.py --help
.
test_old.py
is a deprecated, but still accessible test suite focusing on conversion results.
python test_old.py