Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit 2ffd059

Browse files
committed
Few minor updates
1 parent 30c77b7 commit 2ffd059

File tree

3 files changed

+16
-22
lines changed

3 files changed

+16
-22
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ makejxl --recursive /home/username/myphotos
2525

2626
You will need cjxl in path. You can get it by running build_cjxl.sh as root
2727

28+
Or simpler alternative that doesn't need this script:
29+
30+
```sh
31+
apt install imagemagick parallel
32+
find /path/to/images -type f -iregex '.*\(gif\|jpe?g\|png\)$' | parallel convert {} {.}.jxl
33+
```
34+
2835
## Windows
2936

3037
You can download and use it as single Windows binary, see [Releases](https://github.com/varnav/makejxl/releases/)
@@ -39,13 +46,6 @@ You will need [cjxl](https://gitlab.com/wg1/jpeg-xl/-/blob/master/doc/developing
3946

4047
Remember, you need double slashes in Windows.
4148

42-
## Alternatives
43-
44-
```sh
45-
apt install imagemagick parallel
46-
find /path/to/images -type f -iregex '.*\(gif\|jpe?g\|png\)$' | parallel convert {} {.}.jxl
47-
```
48-
4949
## See also
5050
* [makejxl](https://github.com/varnav/makejxl/)
5151
* [filmcompress](https://github.com/varnav/filmcompress/)

build_cjxl.sh

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -ex
22

33
if [ "$EUID" -ne 0 ]
44
then echo "Please run as root"
@@ -9,28 +9,22 @@ if [ $(grep -c avx2 /proc/cpuinfo) == 0 ]
99
then echo "AVX2 support required"
1010
exit
1111
fi
12-
1312
set -ex
1413

15-
16-
export DEBIAN_FRONTEND=noninteractive
17-
1814
export RUSTFLAGS="-C target-feature=+avx2,+fma"
1915
export CFLAGS="-mavx2 -mfma -ftree-vectorize -pipe"
20-
21-
export CC=clang-7 CXX=clang++-7
16+
export MAKEFLAGS=-j$(nproc --ignore=2)
17+
export DEBIAN_FRONTEND=noninteractive
2218

2319
apt-get update
24-
apt-get -y install git wget ca-certificates cmake pkg-config libbrotli-dev libgif-dev libjpeg-dev libopenexr-dev libpng-dev libwebp-dev clang-7
20+
apt-get -y install python3-pip git wget ca-certificates cmake pkg-config libbrotli-dev libgif-dev libjpeg-dev libopenexr-dev libpng-dev libwebp-dev clang
2521

2622
cd /tmp/
27-
rm -rf jpeg-xl
28-
git clone --recursive --depth=1 https://gitlab.com/wg1/jpeg-xl.git
29-
cd jpeg-xl
23+
rm -rf libjxl
24+
git clone https://github.com/libjxl/libjxl.git --recursive
25+
cd libjxl
3026
rm -rf build
3127
mkdir build
3228
cd build
3329
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF ..
34-
cmake --build . -- -j$(nproc)
35-
36-
cp tools/cjxl /usr/bin/
30+
cmake --build . -- -j$(nproc --ignore=2)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"Operating System :: OS Independent",
3636
"Topic :: Scientific/Engineering :: Image Processing",
3737
"Topic :: Utilities",
38-
"Topic :: Multimedia :: Graphics",
38+
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
3939
"Environment :: Console",
4040
"Programming Language :: Python :: 3.9",
4141
"Programming Language :: Python :: 3 :: Only",

0 commit comments

Comments
 (0)