fix image issues

This commit is contained in:
Ali Abid 2020-08-05 13:13:10 -07:00
parent 2afffe1b71
commit 311b8e4fca
8 changed files with 14118 additions and 22 deletions

View File

@ -35,8 +35,9 @@
background-color: #e67e22;
}
.image_preview {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: contain;
}
.hidden_upload {
display: none;

View File

@ -6,7 +6,8 @@
align-items: center;
}
.output_image {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: contain;
display: none;
}

View File

@ -80,9 +80,7 @@ const image_input = {
submit: function() {
var io = this;
if (this.state == "IMAGE_LOADED") {
resizeImage.call(this, this.image_data, 600, 600, function(image_data) {
io.io_master.input(io.id, image_data);
})
io.io_master.input(io.id, this.image_data);
}
},
clear: function() {

File diff suppressed because one or more lines are too long

View File

@ -35,8 +35,9 @@
background-color: #e67e22;
}
.image_preview {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: contain;
}
.hidden_upload {
display: none;

View File

@ -6,7 +6,8 @@
align-items: center;
}
.output_image {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: contain;
display: none;
}

View File

@ -80,9 +80,7 @@ const image_input = {
submit: function() {
var io = this;
if (this.state == "IMAGE_LOADED") {
resizeImage.call(this, this.image_data, 600, 600, function(image_data) {
io.io_master.input(io.id, image_data);
})
io.io_master.input(io.id, this.image_data);
}
},
clear: function() {

File diff suppressed because one or more lines are too long