Browse Source

Update ignore, copy file stats for webp

pull/2/head v1.0.3
parent
commit
e379d43411
  1. 3
      .gitignore
  2. 5
      pyimizer.py

3
.gitignore

@ -52,6 +52,9 @@ coverage.xml
# Django stuff:
*.log
# Idea shuff
.idea
# Sphinx documentation
docs/_build/

5
pyimizer.py

@ -5,7 +5,7 @@
"""
__prog__ = "PyImizer"
__version__ = "1.0.2"
__version__ = "1.0.3"
__desc__ = 'Python Image Optimizer v%s' % __version__
import os
@ -300,6 +300,9 @@ class Png2WebpAction(BaseFileAction):
if not self.hasError():
# Try to save mtime, permissions
shutil.copystat(self.getInFilePath(), self.getOutFilePath())
self._size_after = os.path.getsize(self.getOutFilePath())
if self._size_after < self._size_before:

Loading…
Cancel
Save