Skip to content

Commit e23ad2c

Browse files
authored
mozjpeg: default to fastest compression profile (lovell#311)
1 parent df74bd8 commit e23ad2c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build/posix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ make install/strip
197197
mkdir ${DEPS}/jpeg
198198
$CURL https://github.com/mozilla/mozjpeg/archive/${VERSION_MOZJPEG}.tar.gz | tar xzC ${DEPS}/jpeg --strip-components=1
199199
cd ${DEPS}/jpeg
200+
# Use libjpeg-turbo behaviour by default
201+
sed -i'.bak' 's/JCP_MAX_COMPRESSION/JCP_FASTEST/' jcapimin.c
200202
cmake -G"Unix Makefiles" \
201203
-DCMAKE_TOOLCHAIN_FILE=${ROOT}/Toolchain.cmake -DCMAKE_INSTALL_PREFIX=${TARGET} -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_BUILD_TYPE=MinSizeRel \
202204
-DBUILD_SHARED_LIBS=FALSE -DWITH_JPEG8=1 -DWITH_TURBOJPEG=FALSE -DPNG_SUPPORTED=FALSE

0 commit comments

Comments
 (0)