-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'unstable' into stable for 0.9.9 release
- Loading branch information
Showing
42 changed files
with
1,932 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
private_files | ||
build | ||
dist | ||
/private_files/ | ||
/build/ | ||
/dist/ | ||
.vscode | ||
__pycache__ | ||
.pytest_cache | ||
tmp.py | ||
env | ||
sample_img | ||
unit_tests_tmp | ||
misc/appimagetool | ||
misc/VC_redist.x64.exe | ||
/env/ | ||
/env_test/ | ||
/sample_img/ | ||
/unit_tests_tmp/ | ||
/misc/appimagetool | ||
/misc/VC_redist.x64.exe | ||
/bin/ | ||
/.coverage | ||
/htmlcov/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,12 @@ You can submit a bug report in 2 ways | |
- \[public\] Submit a new [GitHub Issue](https://github.com/JacobDev1/xl-converter/issues) | ||
- \[private\] Email me at [email protected] | ||
|
||
## Contributions | ||
|
||
Pull requests are ignored to avoid licensing issues when reusing the code. | ||
|
||
Feel free to make bug reports as contributions. | ||
|
||
## Building from Source | ||
|
||
### Windows 10 | ||
|
@@ -75,6 +81,8 @@ git clone -b stable --depth 1 https://github.com/JacobDev1/xl-converter.git | |
cd xl-converter | ||
``` | ||
|
||
[Provide tool binaries](#providing-tool-binaries). | ||
|
||
Setup `venv`. | ||
|
||
```cmd | ||
|
@@ -115,6 +123,8 @@ chmod -R +x xl-converter | |
cd xl-converter | ||
``` | ||
|
||
[Provide tool binaries](#providing-tool-binaries). | ||
|
||
Create and activate a virtual environment. | ||
|
||
```bash | ||
|
@@ -144,51 +154,88 @@ Extra building modes: | |
- `make build-7z` - package to a 7z file (with an installer) (requires `p7zip-full`) | ||
- `make build-appimage` - package as an AppImage (requires `fuse`) | ||
|
||
### Troubleshooting Build Issues | ||
### Providing Tool Binaries | ||
|
||
#### Building on Linux | ||
To build XL Converter, you need to provide various binaries. This can be quite challenging. | ||
|
||
The build may not be generated successfully, because `PyInstaller` sometimes clashes with virtual environments on Linux. | ||
Binaries needed: | ||
- [libjxl](https://github.com/libjxl/libjxl) 0.10.2 | ||
- cjxl | ||
- djxl | ||
- jxlinfo | ||
- cjpegli | ||
- [libavif](https://github.com/AOMediaCodec/libavif) 1.0.3 (**AVIF_CODEC_AOM**) | ||
- avifenc | ||
- avifdec | ||
- [imagemagick](https://imagemagick.org/) 7.1.1-15 Q16-HDRI | ||
- magick - AppImage for Linux | ||
- magick.exe - Windows | ||
- [exiftool](https://exiftool.org/) 12.77 | ||
- exiftool.exe - Windows | ||
- exiftool - standalone Perl build | ||
- [oxipng](https://github.com/shssoichiro/oxipng) 0.8.0 | ||
|
||
If the executable doesn't launch do the following. | ||
Place them in the following directories: | ||
- `xl-converter\bin\win` for Windows (x86_64) | ||
- `xl-converter/bin/linux` for Linux (x86_64) | ||
|
||
Deactivate the virtual environment. | ||
All binaries are built statically. The version numbers should match. Binaries on Windows have an `.exe` extension. | ||
|
||
```bash | ||
deactivate | ||
``` | ||
See the official [XL Converter builds](https://github.com/JacobDev1/xl-converter/releases) for examples. | ||
|
||
Install packages globally. | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
## Info | ||
|
||
### Python Version | ||
|
||
The project runs on Python `3.11.6`. It should also work on a slightly older version. `3.12` and newer are not supported. | ||
|
||
### Large Files | ||
|
||
Don't forget `--depth 1` when running `git clone`. This repo contains large files. | ||
|
||
### Development Branch | ||
|
||
Try again. | ||
The dev branch can be accessed with | ||
|
||
```bash | ||
make build | ||
git clone -b unstable --depth 1 https://github.com/JacobDev1/xl-converter.git | ||
``` | ||
|
||
#### Python Version on Linux | ||
## Unit Testing | ||
|
||
The project runs on Python `3.11.6`. The one in your repo should work, but If it doesn't use `pyenv` to get this one specifically. | ||
Unit tests are currently being reworked. | ||
|
||
#### Large Files | ||
### Running | ||
|
||
Don't forget `--depth 1` when running `git clone`. This repo contains large files. | ||
[Setup repo](#building-from-source). | ||
|
||
## Development Build | ||
Create a test environment. | ||
|
||
To access the development build, clone this branch | ||
```bash | ||
python3 -m venv env_test | ||
source env/bin/activate | ||
pip install -r requirements.txt | ||
pip install -r requirements_test.txt | ||
``` | ||
|
||
Run tests (Linux) | ||
|
||
```bash | ||
git clone --depth 1 -b unstable https://github.com/JacobDev1/xl-converter.git | ||
make test | ||
``` | ||
|
||
Then follow the [building section](#building-from-source) | ||
Run tests (Windows) | ||
|
||
## Contributions | ||
```cmd | ||
python test.py | ||
``` | ||
|
||
Pull requests are ignored to avoid potential legal complications when reusing the code. | ||
### Deprecated | ||
|
||
Forward your code and feature suggestions to my email at [email protected] | ||
`tests_old.py` is a deprecated, but still accessible test suite. | ||
|
||
To run them, put any image with a varying aspect ratio inside a `sample_img` folder in the project's directory. | ||
|
||
```bash | ||
python tests_old.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.