mozjpeg on server with jpegtran with same result like in Squoosh

时间:2019-05-06 12:06:26

标签: jpegtran mozjpeg

I installed mozjpeg on my server and tried to get the same compress result like in Squoosh Webinterface with mozjpeg

  1. I compressed an image in Squoosh Webinterface. Original image: testimage_original.jpg (324kb) compressed image: testimage_squoosh_75.jpg(51kb) (75% and compress with mozjpeg)

  2. Test on server: /opt/mozjpeg/bin/jpegtran -copy none -progressive -optimize /var/www/vhosts/testpage.de/httpdocs/test-local/testimage.jpg > /var/www/vhosts/testpage.de/httpdocs/test-local/compressed.jpg

    result is only a to 267kb compressed file.

how can i reach a nearly the same compression on my server?

1 个答案:

答案 0 :(得分:-1)

/opt/mozjpeg/bin/cjpeg -q 75 xxx.jpg > xxx1.jpg