Explorar o código

Merge pull request #44 from noirbizarre/patch-2

Fix jpegtran command line
Justin Mayer %!s(int64=11) %!d(string=hai) anos
pai
achega
352e8c5f5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}"'),
 ]