mirror of
https://github.com/javl/image2cpp.git
synced 2026-09-11 17:13:20 +00:00
Fix removing images
Closes #7 You are now able to remove images all imags again Closes #10 All images will now get exported instead of only the ones uploaded last
This commit is contained in:
+1
-4
@@ -358,7 +358,7 @@
|
|||||||
|
|
||||||
// The variable to hold our images. Global so we can easily reuse it when the
|
// The variable to hold our images. Global so we can easily reuse it when the
|
||||||
// user updates the settings (change canvas size, scale, invert, etc)
|
// user updates the settings (change canvas size, scale, invert, etc)
|
||||||
var images;
|
var images = new Images();
|
||||||
|
|
||||||
// A bunch of settings used when converting
|
// A bunch of settings used when converting
|
||||||
var settings = {
|
var settings = {
|
||||||
@@ -521,8 +521,6 @@
|
|||||||
// Handle inserting an image by pasting code
|
// Handle inserting an image by pasting code
|
||||||
function handleTextInput(drawMode){
|
function handleTextInput(drawMode){
|
||||||
|
|
||||||
images = new Images();
|
|
||||||
|
|
||||||
var canvas = document.createElement('canvas');
|
var canvas = document.createElement('canvas');
|
||||||
canvas.width = parseInt(document.getElementById("text-input-width").value);
|
canvas.width = parseInt(document.getElementById("text-input-width").value);
|
||||||
canvas.height = parseInt(document.getElementById("text-input-height").value);
|
canvas.height = parseInt(document.getElementById("text-input-height").value);
|
||||||
@@ -602,7 +600,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
images = new Images();
|
|
||||||
|
|
||||||
reader.onload = (function(file) {
|
reader.onload = (function(file) {
|
||||||
return function(e) {
|
return function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user