-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (91 loc) · 4.22 KB
/
Copy pathindex.html
File metadata and controls
111 lines (91 loc) · 4.22 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<title>Introduction to Media Project</title>
<script src="app.js"> </script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<p class="ex">Names:Roba Maged & Haneen Mahmoud</p>
<p class="ex1">Tutorials: T-24, T-17</p>
<p class="ex2">IDs:49-4215,49-2738</p>
<p><b>Upload a grayscale image </b></p>
<input id="uploadImage" name="photo" type="file" accept="image/jpg,image/png"
onchange="displayOriginalImage(this)">
</div>
<div class="row" id="originalImage" style="display: none;">
<div class="column">
<p> The grayscale image you want to apply transformation on :</p>
<img src="" id="inputImage">
</div>
<div class="column" id="result" style="display: none;">
<p>Transformed Image :</p>
<canvas id="resultImage"></canvas>
</div>
</div><br>
<form id="transformation" style="display: none;">
<b> Select the required image transformation </b>
<select id="myList" onchange="showTransformForm()">
<option disabled selected> ---Choose transformation--- </option>
<option> Increase Brightness </option>
<option> Decrease Brightness </option>
<option> Increase Contrast </option>
<option> Decrease Contrast </option>
<option> Inverse </option>
</select>
<p> Your selected transformation is:
<input type="text" id="transformType" size="20">
</form>
<div id="increaseBrightnessInputs" style="display: none;">
<form id="increaseBrightnessForm" class="form">
<label>Increase Brightness Value: </label>
<input type="number" id="ib" placeholder="0" min="0" max="255"><br><br>
<input type="submit" value="Apply">
</form>
<p>Click on the Apply button to submit the value.</p>
</div>
<div id="decreaseBrightnessInputs" style="display: none;">
<form id="decreaseBrightnessForm" class="form">
<label>Decrease Brightness Value: </label>
<input type="number" id="db" placeholder="0" min="0" max="255"><br><br>
<input type="submit" value="Apply">
</form>
<p>Click on the Apply button to submit the value.</p>
</div>
<div id="increaseContrastInputs" style="display: none;">
<form id="increaseContrastForm" class="form">
<label>Original Brightest Dark: </label>
<input type="number" id="ib2" placeholder="0" min="0" max="255"><br><br>
<label>Original Darkest Bright: </label>
<input type="number" id="ibb2" placeholder="0" min="0" max="255"><br><br>
<label>Transformed Brightest Dark: </label>
<input type="number" id="ibbb2" placeholder="0" min="0" max="255"><br><br>
<label>Transformed Darkest Bright: </label>
<input type="number" id="ibbbb2" placeholder="0" min="0" max="255"><br><br>
<input type="submit" value="Apply">
</form>
<p>Click on the Apply button to submit the value.</p>
</div>
<div id="decreaseContrastInputs" style="display: none;">
<form id="decreaseContrastForm" class="form">
<label>Original Brightest Dark: </label>
<input type="number" id="DOriginalBrightestDark" placeholder="0" min="0" max="255"><br><br>
<label>Original Darkest Bright: </label>
<input type="number" id="DOriginalDarkestBright" placeholder="0" min="0" max="255"><br><br>
<label>Transformed Brightest Dark: </label>
<input type="number" id="DTransformedBrightestDark" placeholder="0" min="0" max="255"><br><br>
<label>Transformed Darkest Bright: </label>
<input type="number" id="DTransformedDarkestBright" placeholder="0" min="0" max="255"><br><br>
<input type="submit" value="Apply">
</form>
<p>Click on the Apply button to submit the value.</p>
</div>
<div id="Inverse" style="display: none;">
<form id="inverseForm" class="form">
<input type="submit" value="Apply">
</form>
<p>Click on the Apply button to apply inverse.</p>
</div>
</body>
</html>