From 858ab3b55c6dcf0ff4eb8a2f0ede15bcf6baa08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atakan=20Do=C4=9Fan=20=C3=96zban?= <68283731+atakanozban@users.noreply.github.com> Date: Thu, 2 Oct 2025 00:19:56 +0300 Subject: [PATCH] Add files via upload --- make_360.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 make_360.py diff --git a/make_360.py b/make_360.py new file mode 100644 index 0000000..76346bd --- /dev/null +++ b/make_360.py @@ -0,0 +1,30 @@ +import os +import subprocess + +# Select the ExifTool binary name here (if exiftool(-k).exe at the same directory) +EXIFTOOL_PATH = 'exiftool.exe' # or 'exiftool(-k).exe' + +current_dir = os.getcwd() + +image_files = [f for f in os.listdir(current_dir) if f.lower().endswith(('.jpg', '.jpeg'))] + +for image in image_files: + print(f"Processing: {image}") + + # ExifTool command and settings. + cmd = [ + EXIFTOOL_PATH, + '-overwrite_original', + '-XMP-GPano:UsePanoramaViewer=True', + '-XMP-GPano:ProjectionType=equirectangular', + '-XMP-GPano:CroppedAreaImageWidthPixels