Image Editor - O editor de imagens mais famoso do mundo
About this app
Image Editor - O editor de imagens mais famoso do mundo. Edite suas imagens com os efeitos Caneta Mágica, Colorido e Negativo.
Image Editor - O editor de imagens mais famoso do mundo Image Editor - O editor de imagens mais famoso do mundo Caneta Mágica Colorido Negativo
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 - O editor de imagens mais famoso do mundo</title>
<meta name="description" content="Image Editor - O editor de imagens mais famoso do mundo. Edite suas imagens com os efeitos Caneta Mágica, Colorido e Negativo.">
<meta name="keywords" content="image editor, editor de imagens, caneta mágica, colorido, negativo">
<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 imgData = e.target.result;
// Display the uploaded image
$('#uploaded-image').attr('src', imgData);
}
reader.readAsDataURL(file);
}
// Function to apply the Magic Pen effect
function applyMagicPenEffect() {
// Apply the magic pen effect to the uploaded image
$('#uploaded-image').addClass('magic-pen-effect');
}
// Function to apply the Colorful effect
function applyColorfulEffect() {
// Apply the colorful effect to the uploaded image
$('#uploaded-image').addClass('colorful-effect');
}
// Function to apply the Negative effect
function applyNegativeEffect() {
// Apply the negative effect to the uploaded image
$('#uploaded-image').addClass('negative-effect');
}
// Event listener for image upload
$('#image-upload').change(function(event) {
handleImageUpload(event);
});
// Event listener for Magic Pen button
$('#magic-pen-btn').click(function() {
applyMagicPenEffect();
});
// Event listener for Colorful button
$('#colorful-btn').click(function() {
applyColorfulEffect();
});
// Event listener for Negative button
$('#negative-btn').click(function() {
applyNegativeEffect();
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
.magic-pen-effect {
filter: url(#magic-pen-filter);
}
.colorful-effect {
filter: url(#colorful-filter);
}
.negative-effect {
filter: url(#negative-filter);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Image Editor - O editor de imagens mais famoso do mundo</h1>
<div>
<input type="file" id="image-upload" accept="image/*">
<br>
<img id="uploaded-image" src="#" alt="Uploaded Image" style="max-width: 100%;">
</div>
<div>
<button id="magic-pen-btn" class="btn btn-primary">
<i class="fa fa-magic"></i> Caneta Mágica
</button>
<button id="colorful-btn" class="btn btn-success">
<i class="fa fa-paint-brush"></i> Colorido
</button>
<button id="negative-btn" class="btn btn-danger">
<i class="fa fa-adjust"></i> Negativo
</button>
</div>
<!-- SVG Filters -->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="magic-pen-filter">
<feColorMatrix type="matrix" values="0.33 0.33 0.33 0 0
0.33 0.33 0.33 0 0
0.33 0.33 0.33 0 0
0 0 0 1 0" />
</filter>
<filter id="colorful-filter">
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="0 1"></feFuncR>
<feFuncG type="table" tableValues="0 1"></feFuncG>
<feFuncB type="table" tableValues="0 1"></feFuncB>
</feComponentTransfer>
</filter>
<filter id="negative-filter">
<feComponentTransfer>
<feFuncR type="table" tableValues="1 0"></feFuncR>
<feFuncG type="table" tableValues="1 0"></feFuncG>
<feFuncB type="table" tableValues="1 0"></feFuncB>
</feComponentTransfer>
</filter>
</defs>
</svg>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!