Skip to content

Commit

Permalink
Fixed #2 Subsampling default set to -1 for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorell committed Nov 1, 2019
1 parent bb10ad0 commit a20932e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

Cruncher is a simple but powerful command line tool that optimizes images for the web.

[![Version](https://flat.badgen.net/badge/PyPI/v0.2.1)](https://pypi.org/project/cruncher/)

## Installing

Install and update Cruncher using [pip](https://pip.pypa.io/en/stable/quickstart/).

```
```commandline
$ pip install cruncher
```

Expand Down
8 changes: 4 additions & 4 deletions cruncher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def cli(image, directory, output, file_format, quality, size, append,
"""

cruncher = CrunchHandler(image=image, directory=directory, output=output, file_format=file_format,
quality=quality, size=size, append=append, metadata=metadata,
orientation=orientation, nversions=nversions, recursive=recursive,
config=config)
quality=quality, size=size, append=append, metadata=metadata,
orientation=orientation, nversions=nversions, recursive=recursive,
config=config)
cruncher.run_cruncher()

# Calculate Stats
Expand All @@ -135,4 +135,4 @@ def cli(image, directory, output, file_format, quality, size, append,
if __name__ == '__main__':
cli()

__version__ = '0.2'
__version__ = '0.2.1'
3 changes: 2 additions & 1 deletion cruncher/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def generate_versions(self):
'quality': self.quality,
'append': self.append,
'orientation': self.orientation,
'metadata': self.metadata
'metadata': self.metadata,
'subsampling': -1
})

def get_images(self):
Expand Down

0 comments on commit a20932e

Please sign in to comment.