This commit is contained in:
lwl0608 2024-04-29 11:29:26 +08:00
parent d7746fa85b
commit ef78a2b8ab
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ class S:
for img in images:
old_key = safe_get_str(img, "src_id")
new_key = old_key + "_h2j"
local_path = new_key + ".jpeg"
arr = old_key.split("/")
local_path = arr[len(arr) - 1] + ".jpeg"
ret = self.heic_to_jpg_and_save(old_key, local_path)
logger.Info("heic_to_jpg_and_save, ret: {}".format(ret))