Sangwon78 commited on
Commit
fd106ea
ยท
verified ยท
1 Parent(s): 3304336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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