Open xfuturomax opened 3 years ago
❓ Maybe use jpeg-recompress
based on the standard libjpeg
: https://github.com/ImageProcessing-ElectronicPublications/jpeg-recompress ?
@xfuturomax for me this works on ubuntu 20.04. After this the jpeg-recompress binary is transportable because of static build:
apt-get update
apt-get install -y cmake zlib1g-dev libpng-dev git
git clone https://github.com/mozilla/mozjpeg.git
cd mozjpeg
mkdir build && cd build
cmake -G"Unix Makefiles" ../
make
make install
cd /
git clone https://github.com/danielgtaylor/jpeg-archive.git
cd jpeg-archive
LDFLAGS="--static“ make
make install
cd /
git clone https://github.com/kornelski/pngquant.git
apt-get install build-essential git pkg-config libpng-dev
./configure --extra-ldflags=-static
make
I've tried to build a docker image on alpine with version 4 of mozjpeg and got an error from subject. This is part of my Dockerfile:
Generally, is it possible to build jpeg-archive with verison 4 of mozjpeg at this moment? I've also tried to build mozjpeg with
-DCMAKE_INSTALL_LIBDIR=/opt/mozjpeg/lib/
andln -s /opt/mozjpeg/lib64/ /opt/mozjpeg/lib;
but unsuccessfully.And jpeg-archive successfully builds with 3.3.1 version of mozjpeg.