This repository was archived by the owner on Mar 10, 2023. It is now read-only.
File tree 3 files changed +16
-22
lines changed
3 files changed +16
-22
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ makejxl --recursive /home/username/myphotos
25
25
26
26
You will need cjxl in path. You can get it by running build_cjxl.sh as root
27
27
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
+
28
35
## Windows
29
36
30
37
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
39
46
40
47
Remember, you need double slashes in Windows.
41
48
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
-
49
49
## See also
50
50
* [ makejxl] ( https://github.com/varnav/makejxl/ )
51
51
* [ filmcompress] ( https://github.com/varnav/filmcompress/ )
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash -ex
2
2
3
3
if [ " $EUID " -ne 0 ]
4
4
then echo " Please run as root"
@@ -9,28 +9,22 @@ if [ $(grep -c avx2 /proc/cpuinfo) == 0 ]
9
9
then echo " AVX2 support required"
10
10
exit
11
11
fi
12
-
13
12
set -ex
14
13
15
-
16
- export DEBIAN_FRONTEND=noninteractive
17
-
18
14
export RUSTFLAGS=" -C target-feature=+avx2,+fma"
19
15
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
22
18
23
19
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
25
21
26
22
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
30
26
rm -rf build
31
27
mkdir build
32
28
cd build
33
29
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)
Original file line number Diff line number Diff line change 35
35
"Operating System :: OS Independent" ,
36
36
"Topic :: Scientific/Engineering :: Image Processing" ,
37
37
"Topic :: Utilities" ,
38
- "Topic :: Multimedia :: Graphics" ,
38
+ "Topic :: Multimedia :: Graphics :: Graphics Conversion " ,
39
39
"Environment :: Console" ,
40
40
"Programming Language :: Python :: 3.9" ,
41
41
"Programming Language :: Python :: 3 :: Only" ,
You can’t perform that action at this time.
0 commit comments