Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def compress_images(*image_paths):
|
|
| 9 |
if image_path is not None:
|
| 10 |
img = Image.open(image_path)
|
| 11 |
compressed_io = io.BytesIO()
|
| 12 |
-
img.save(compressed_io, format='JPEG', quality=
|
| 13 |
compressed_io.seek(0)
|
| 14 |
compressed_filename = f"compressed_{os.path.basename(image_path)}"
|
| 15 |
with open(compressed_filename, "wb") as f:
|
|
|
|
| 9 |
if image_path is not None:
|
| 10 |
img = Image.open(image_path)
|
| 11 |
compressed_io = io.BytesIO()
|
| 12 |
+
img.save(compressed_io, format='JPEG', quality=80)
|
| 13 |
compressed_io.seek(0)
|
| 14 |
compressed_filename = f"compressed_{os.path.basename(image_path)}"
|
| 15 |
with open(compressed_filename, "wb") as f:
|