Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import subprocess

class Images:
""" Class for image operations
Expand Down Expand Up @@ -53,7 +54,7 @@ def extract_heic_file(self, file_uri: str) -> bool:
os.remove(extract_folder + file)

# Extract the HEIC file
os.system("heif-convert '" + file_uri + "' '" + extract_folder + file_name + ".jpg'")
subprocess.run(["heif-convert", file_uri, extract_folder + file_name + ".jpg"], check=True)

return True
except:
Expand Down
Loading