Linux安装pdfsizeopt来压缩PDF以及ImageMagick来压缩图片

$ mkdir ~/pdfsizeopt
$ cd ~/pdfsizeopt
$ wget -O pdfsizeopt_libexec_linux.tar.gz https://github.com/pts/pdfsizeopt/releases/download/2017-01-24/pdfsizeopt_libexec_linux-v3.tar.gz
$ tar xzvf pdfsizeopt_libexec_linux.tar.gz
$ rm -f    pdfsizeopt_libexec_linux.tar.gz
$ mkdir /opt/pdfsizeopt
$ mv ~/pdfsizeopt/pdfsizeopt_libexec_linux /opt/pdfsizeopt
& cd /opt/pdfsizeopt
& git clone https://gitee.com/mirrors_pts/pdfsizeopt.git

& cp -r /opt/pdfsizeopt/pdfsizeopt/* /opt/pdfsizeopt/

 

sudo apt update
sudo apt upgrade
sudo apt install make build-essential automake libltdl-dev git
sudo apt install imagemagick

 

posted @ 2022-10-21 11:27  一朵包纸  阅读(242)  评论(0编辑  收藏  举报