Spaces:
Running
Running
File size: 1,966 Bytes
0a5397d 522b954 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d 6141b7e 0a5397d d06bcc7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | <!DOCTYPE html>
<html>
<head>
<title>My Photo Studio</title>
<style>
body {
font-family: Arial;
background: #f5f5f5;
padding: 30px;
}
.row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.panel {
flex: 1;
background: white;
padding: 20px;
border-radius: 10px;
}
img {
width: 100%;
max-height: 350px;
object-fit: contain;
}
button {
padding: 12px 25px;
cursor: pointer;
}
input[type="range"] {
width: 100%;
}
</style>
</head>
<body>
<h1>My Photo Studio</h1>
<p>Upload an image and explore editing options!</p>
<div class="row">
<div class="panel">
<h3>Upload Image</h3>
<input type="file" accept="image/*"
onchange="displayImage(event)">
<img id="original">
</div>
<div class="panel">
<h3>Image Preview</h3>
<img id="preview">
</div>
</div>
<div class="row">
<div class="panel">
<label>Brightness</label>
<input type="range" min="0" max="100" value="50">
</div>
<div class="panel">
<label>Contrast</label>
<input type="range" min="0" max="100" value="50">
</div>
</div>
<div class="row">
<button>Crop Image</button>
<button>Save Image</button>
</div>
<script>
function displayImage(event) {
const file = event.target.files[0];
if (file) {
const url = URL.createObjectURL(file);
document.getElementById("original").src = url;
document.getElementById("preview").src = url;
}
}
</script>
</body>
</html> |