Skip to content
We Get Around Network
Quick StartCameras, platforms, training and more
#Imagemagick

360 Mirrorball Batch File for Imagemagick

Started by Sdoughtie · · 0 replies

The last post here is over 2 years old. Cameras, apps and prices may have changed since; see the newest #Imagemagick topics.

🔖 Save🔔 Follow
#Imagemagick#Mirrorball

SdoughtieVeteranOP

Access member
Imagemagick is a great way to batch edit photos. It has an endless amount of settings and commands for processing images. It can be downloaded for free at:

https://imagemagick.org/script/download.php

Below is a batch file for Windows to create a mirrorball to hide a tripod below your 360 camera. For me, I am usually in the bottom of 360, because I carry the tripod above and take 360's while walking the site. I don't particularly want my clients to see my bald spot in every 360 image.

Usage:
You will need Imagemagick installed. Create a batch file by using notepad and save the file as 'mirrorball.bat'. The batch is drag and drop. If you drag one image from a folder, all of the images in the folder will be processed. The new mirror ball image will be saved with '-360' after the file name. It works with any resolution 360's.

Note: Never process original images without copies!

@echo off
FOR %%a IN ( *.jpg ) DO (
magick convert %%a -crop 100%%x85%% %%a.jpg
magick convert %%a-0.jpg -resize 100%%x17.63%%! %%a-1.jpg
magick convert %%a-1.jpg -flip %%a-1.jpg
magick convert %%a-0.jpg %%a-1.jpg -append %%a-360.jpg
del %%a-0.jpg %%a-1.jpg
)

See below for a 'what it does'...

Person in blue shirt working on a concrete rooftop with yellow safety railing and trees visible in the background.Overhead 360-degree spherical panoramic image of a rooftop with circular mirror ball effect and surrounding landscape.

See the 360...


Turns Command messages off:
@echo off

Loop through each jpg in a folder:
FOR %%a IN ( *.jpg ) DO (

Crop the image into two images, removing the bottom 15% from the 360:
magick convert %%a -crop 100%%x85%% %%a.jpg

Create a stretched copy of the top portion of the 360 to fit in the bottom 15%:
magick convert %%a-0.jpg -resize 100%%x17.63%%! %%a-1.jpg

Flip the bottom of the 360 vertically:
magick convert %%a-1.jpg -flip %%a-1.jpg

Append the two portions of the 360 vertically into one 360 image:
magick convert %%a-0.jpg %%a-1.jpg -append %%a-360.jpg

Remove temporary files:
del %%a-0.jpg %%a-1.jpg
)

Loading…

Browse the forum →