mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
Merge pull request #2530 from hugovk/compress-level
Fix Image.show compress_level typo
This commit is contained in:
commit
b076b55623
|
@ -117,7 +117,7 @@ elif sys.platform == "darwin":
|
||||||
|
|
||||||
class MacViewer(Viewer):
|
class MacViewer(Viewer):
|
||||||
format = "PNG"
|
format = "PNG"
|
||||||
options = {'compress-level': 1}
|
options = {'compress_level': 1}
|
||||||
|
|
||||||
def get_command(self, file, **options):
|
def get_command(self, file, **options):
|
||||||
# on darwin open returns immediately resulting in the temp
|
# on darwin open returns immediately resulting in the temp
|
||||||
|
@ -145,7 +145,7 @@ else:
|
||||||
|
|
||||||
class UnixViewer(Viewer):
|
class UnixViewer(Viewer):
|
||||||
format = "PNG"
|
format = "PNG"
|
||||||
options = {'compress-level': 1}
|
options = {'compress_level': 1}
|
||||||
|
|
||||||
def show_file(self, file, **options):
|
def show_file(self, file, **options):
|
||||||
command, executable = self.get_command_ex(file, **options)
|
command, executable = self.get_command_ex(file, **options)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user