Calculator Tools Calculator Tools
Create

Editor de Imagens

Jan 7, 2024

About this app

Um editor de imagens com 1000+ efeitos para escolher. Adicione imagens e escreva efeitos diferentes com o modo IA.

Editor de Imagens Editor de Imagens Escolha uma imagem para começar: Escreva um efeito diferente: Nota: Ao digitar um efeito no campo acima, o efeito será aplicado à imagem automaticamente.

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 com 1000+ efeitos para escolher. Adicione imagens e escreva efeitos diferentes com o modo IA.">
<meta name="keywords" content="editor de imagens, efeitos, modo IA, adicionar imagens">

<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) {
var file = event.target.files[0];
var reader = new FileReader();

reader.onload = function(event) {
var imageUrl = event.target.result;
// Display the image on the page
$("#image-container").html('<img src="' + imageUrl + '" alt="Uploaded Image">');
};

reader.readAsDataURL(file);
}

// Function to handle AI effect input
function handleAIEffectInput() {
var effectText = $("#ai-effect-input").val();
// Apply the AI effect to the image
$("#image-container img").css("filter", effectText);
}

// Event listener for image upload
$("#image-upload").on("change", handleImageUpload);

// Event listener for AI effect input
$("#ai-effect-input").on("input", handleAIEffectInput);
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
#image-container {
margin-top: 20px;
text-align: center;
}

#image-container img {
max-width: 100%;
max-height: 500px;
filter: none;
transition: filter 0.3s ease;
}

#ai-effect-input {
width: 100%;
padding: 10px;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Editor de Imagens</h1>
<p>Escolha uma imagem para começar:</p>
<input type="file" id="image-upload">

<div id="image-container"></div>

<p>Escreva um efeito diferente:</p>
<input type="text" id="ai-effect-input" placeholder="Digite um efeito">

<p><strong>Nota:</strong> Ao digitar um efeito no campo acima, o efeito será aplicado à imagem automaticamente.</p>
</div>
</body>
</html>