Image Editor
About this app
An image editing app with magical pen and color effects
Image Editor Image Editor Click to upload an image
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Image Editor</title>
<meta name="description" content="An image editing app with magical pen and color effects">
<meta name="keywords" content="image editor, pen tool, color effects">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Function to handle file upload
function handleFileUpload(files) {
var file = files[0];
var reader = new FileReader();
reader.onload = function(e) {
var imgData = e.target.result;
// Display the uploaded image
var imgElement = document.createElement("img");
imgElement.src = imgData;
document.getElementById("main-container").appendChild(imgElement);
};
reader.readAsDataURL(file);
}
// Event listener for file upload
var fileInput = document.getElementById("file-input");
fileInput.addEventListener("change", function() {
handleFileUpload(this.files);
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f5f5f5;
font-family: 'Roboto', sans-serif;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
h1 {
margin-bottom: 30px;
color: #333;
}
.upload-container {
margin-bottom: 30px;
}
.upload-container input[type="file"] {
display: none;
}
.upload-container label {
display: block;
width: 200px;
height: 200px;
background-color: #fff;
border: 2px dashed #ddd;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
}
.upload-container label:hover {
background-color: #f5f5f5;
border-color: #999;
}
.upload-container label i {
font-size: 60px;
color: #999;
margin-top: 70px;
}
.uploaded-image {
max-width: 100%;
margin-bottom: 30px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Image Editor</h1>
<div class="upload-container">
<input type="file" id="file-input">
<label for="file-input">
<i class="fa fa-upload" aria-hidden="true"></i>
<span>Click to upload an image</span>
</label>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!