소스 검색

Fix jpegtran command line

Fix the non-processing of jpeg files.

Fix the error:
```
jpegtran: only one input file
```
Axel Haustant 11 년 전
부모
커밋
30e6a229f6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      optimize_images/optimize_images.py

+ 1 - 1
optimize_images/optimize_images.py

@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
 
 # A list of file types with their respective commands
 COMMANDS = [
-    ('.jpg', 'jpegtran -copy none -optimize "{filename}" "{filename}"'),
+    ('.jpg', 'jpegtran -copy none -optimize -outfile "{filename}" "{filename}"'),
     ('.png', 'optipng "{filename}"'),
 ]