PhotoSphereStudio/views/pages/upload.ejs

81 lines
3.7 KiB
Plaintext
Raw Permalink Normal View History

2023-04-08 10:34:31 +07:00
<%- include('../partials/header'); %>
<div class="column shadow-sm p-3 m-4 bg-dark-3 text-light">
<div align="left">
<h1>Upload</h1>
2023-06-27 22:39:15 +07:00
<p>This page will allow you to upload photo spheres to Google Maps after the <i>idiots</i> at Google removed
their perfectly working StreetView app.</p>
2023-04-08 10:34:31 +07:00
<div class="alert alert-info" role="alert">
2024-03-10 06:44:43 +07:00
<span><b>Use the Hugin program to export DJI Drone PhotoSpheres.</b> Google has <b>removed</b> PhotoSphere from Pixel Camera 9.1 and later, use <a href="https://www.apkmirror.com/apk/google-inc/camera/camera-9-0-115-561695573-37-release/">APKMirror</a> to download older versions!</span>
2023-04-08 10:34:31 +07:00
</div>
<div class="alert alert-warning" role="alert">
<span>Latitude and Longitude is <b>not required</b> if your photo already contains location data, however if it doesn't, you can use the map below to pinpoint your location</span>
2023-06-27 22:39:15 +07:00
</div>
2024-03-10 06:44:43 +07:00
<div class="alert alert-warning" role="alert">
<span>If your image doesn't contain required metadata, add it yourself with exifdata. .\exiftool.exe -ProjectionType=equirectangular -UsePanoramaViewer=true file.jpeg</span>
2023-06-27 22:39:15 +07:00
<form name="uploadForm" action="/upload" method="POST" enctype="multipart/form-data">
<div class="form-group">
<legend>Upload a 360 image</legend>
<div class="file-upload">
<button class="file-upload-btn" type="button" onclick="$('.file-upload-input').trigger('click')">Add
Image
</button>
2023-04-08 10:34:31 +07:00
2023-06-27 22:39:15 +07:00
<div class="image-upload-wrap">
<input class="file-upload-input" type='file' id="file" name="file" onchange="readURL(this);"
accept="image/png, image/jpeg"/>
<div class="drag-text">
2023-04-08 10:34:31 +07:00
2023-06-27 22:39:15 +07:00
<div class="buttonText">
2023-04-08 10:34:31 +07:00
<span class="material-symbols-outlined" style="font-size: 5vw;">
upload
</span>
2023-06-27 22:39:15 +07:00
<h3>Drag and drop a file or select add Image</h3>
2023-04-08 10:34:31 +07:00
</div>
2023-06-27 22:39:15 +07:00
2023-04-08 10:34:31 +07:00
</div>
2023-06-27 22:39:15 +07:00
</div>
<div class="file-upload-content">
<img class="file-upload-image" src="" alt="Uploaded Image"/>
<div class="image-title-wrap">
<button type="button" onclick="removeUpload()" class="remove-image">Remove <span
class="image-title">Uploaded Image</span></button>
2023-04-08 10:34:31 +07:00
</div>
</div>
</div>
2023-06-27 22:39:15 +07:00
</div>
2023-04-08 10:34:31 +07:00
2023-06-27 22:39:15 +07:00
<div class="form-group">
<label for="map" class="text-light">Map</label>
<div id="map" class="leaflet-container" style="max-width: 100%; height: 500px"></div>
</div>
<div class="form-group">
<label for="lat" class="text-light">Latitude</label>
<input type="text" id="lat" name="lat" placeholder="Latitude coordinates" class="form-control"
required/>
</div>
<div class="form-control">
<label for="long" class="text-light">Longitude</label>
<input type="text" id="long" name="long" placeholder="Longitude coordinates" class="form-control"
required/>
</div>
2023-04-08 10:34:31 +07:00
2023-06-27 22:39:15 +07:00
<button type="submit" class="ripple">UPLOAD</button>
</form>
2023-04-08 10:34:31 +07:00
</div>
</div>
<script>
2023-06-27 22:39:15 +07:00
2023-04-08 10:34:31 +07:00
</script>
2024-03-10 06:44:43 +07:00
<%- include('../partials/footer'); %>