jpegoptim
给了我这个错误:error creating temp file: mkstemps() failed
jpegoptim -o *.jpg
image1.jpg 2000x1333 24bit P JFIF [OK] 442829 --> 451511 bytes (-1.96%), skipped.
image2.jpg 1500x1124 24bit P Exif XMP IPTC ICC JFIF [OK] 582748 --> 583528 bytes (-0.13%), skipped.
image3.jpg 2000x1501 24bit P Exif XMP IPTC ICC JFIF [OK] 630262 --> 634146 bytes (-0.62%), skipped.
image4.jpg 1620x846 24bit P JFIF [OK] 316664 --> 319702 bytes (-0.96%), skipped.
image5.jpg 1280x855 24bit N Exif XMP Adobe [OK] 66306 --> 66279 bytes (0.04%), optimized.
jpegoptim: error creating temp file: mkstemps() failed
答案 0 :(得分:1)
如果您还没有找到问题,可能是您没有对图像所在目录的写入权限。