LPX55 commited on
Commit
732438c
·
1 Parent(s): d40aa0a
Files changed (1) hide show
  1. debug.py +1 -1
debug.py CHANGED
@@ -38,7 +38,7 @@ def save_image(image_id, image_path: Image.Image) -> None:
38
  try:
39
  # print("Image path: " + image_path)
40
  print("Type: " + str(type(image_path)))
41
- with Image.open(save_image_path) as img:
42
  img = Image.open(image_path)
43
  img = img.convert("P", palette=Image.ADAPTIVE, colors=256)
44
  img.save(save_image_path)
 
38
  try:
39
  # print("Image path: " + image_path)
40
  print("Type: " + str(type(image_path)))
41
+ with Image.open(image_id) as img:
42
  img = Image.open(image_path)
43
  img = img.convert("P", palette=Image.ADAPTIVE, colors=256)
44
  img.save(save_image_path)