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