Editor de Imagens
About this app
Um editor de imagens que permite adicionar efeitos como Arte Pop, Negativo, Caneta Mágica e Turquesa.
Editor de Imagens Editor de Imagens Arte Pop Negativo Caneta Mágica Turquesa
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>Editor de Imagens</title>
<meta name="description" content="Um editor de imagens que permite adicionar efeitos como Arte Pop, Negativo, Caneta Mágica e Turquesa.">
<meta name="keywords" content="editor de imagens, arte pop, negativo, caneta mágica, turquesa">
<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 image upload
function handleImageUpload(event) {
const file = event.target.files[0];
const reader = new FileReader();
reader.onload = function(e) {
const image = document.createElement('img');
image.src = e.target.result;
// Display the uploaded image
const imageContainer = document.getElementById('image-container');
imageContainer.innerHTML = '';
imageContainer.appendChild(image);
}
reader.readAsDataURL(file);
}
// Function to apply pop art effect
function applyPopArtEffect() {
const image = document.querySelector('#image-container img');
if (image) {
image.style.filter = 'sepia(1) saturate(8) hue-rotate(90deg)';
}
}
// Function to apply negative effect
function applyNegativeEffect() {
const image = document.querySelector('#image-container img');
if (image) {
image.style.filter = 'invert(100%)';
}
}
// Function to apply magic pen effect
function applyMagicPenEffect() {
const image = document.querySelector('#image-container img');
if (image) {
image.style.filter = 'grayscale(100%)';
}
}
// Function to apply turquoise effect
function applyTurquoiseEffect() {
const image = document.querySelector('#image-container img');
if (image) {
image.style.filter = 'sepia(0.5) saturate(5) hue-rotate(90deg)';
}
}
// Event listener for image upload
const imageUploadInput = document.getElementById('image-upload');
imageUploadInput.addEventListener('change', handleImageUpload);
// Event listeners for effects buttons
const popArtButton = document.getElementById('pop-art-button');
popArtButton.addEventListener('click', applyPopArtEffect);
const negativeButton = document.getElementById('negative-button');
negativeButton.addEventListener('click', applyNegativeEffect);
const magicPenButton = document.getElementById('magic-pen-button');
magicPenButton.addEventListener('click', applyMagicPenEffect);
const turquoiseButton = document.getElementById('turquoise-button');
turquoiseButton.addEventListener('click', applyTurquoiseEffect);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f8f9fa;
font-family: 'Roboto', sans-serif;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 40px;
}
h1 {
text-align: center;
margin-bottom: 40px;
color: #333;
}
.upload-container {
text-align: center;
margin-bottom: 40px;
}
#image-container {
text-align: center;
margin-bottom: 40px;
}
#image-container img {
max-width: 100%;
height: auto;
}
.effects-container {
text-align: center;
}
.effects-container button {
margin: 5px;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 4px;
color: #fff;
background-color: #007bff;
cursor: pointer;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Editor de Imagens</h1>
<div class="upload-container">
<input type="file" id="image-upload">
</div>
<div id="image-container"></div>
<div class="effects-container">
<button id="pop-art-button">Arte Pop</button>
<button id="negative-button">Negativo</button>
<button id="magic-pen-button">Caneta Mágica</button>
<button id="turquoise-button">Turquesa</button>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!