Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,8 @@ def apply_filter(image, filter_type, intensity):
|
|
| 30 |
|
| 31 |
# ํ์ผ ์ ์ฅ ํจ์
|
| 32 |
def save_file(image, format):
|
|
|
|
|
|
|
| 33 |
file_path = f"processed_image.{format.lower()}"
|
| 34 |
image.save(file_path, format=format)
|
| 35 |
return file_path
|
|
|
|
| 30 |
|
| 31 |
# ํ์ผ ์ ์ฅ ํจ์
|
| 32 |
def save_file(image, format):
|
| 33 |
+
# 'JPG'๋ฅผ 'JPEG'๋ก ๋ณํ
|
| 34 |
+
format = "JPEG" if format.upper() == "JPG" else format.upper()
|
| 35 |
file_path = f"processed_image.{format.lower()}"
|
| 36 |
image.save(file_path, format=format)
|
| 37 |
return file_path
|