mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
fix image issues
This commit is contained in:
parent
2afffe1b71
commit
311b8e4fca
@ -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;
|
||||
|
@ -6,7 +6,8 @@
|
||||
align-items: center;
|
||||
}
|
||||
.output_image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: none;
|
||||
}
|
||||
|
@ -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() {
|
||||
|
7056
build/lib/gradio/static/js/vendor/html2canvas.min.js
vendored
7056
build/lib/gradio/static/js/vendor/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
@ -6,7 +6,8 @@
|
||||
align-items: center;
|
||||
}
|
||||
.output_image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: none;
|
||||
}
|
||||
|
@ -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() {
|
||||
|
7056
gradio/static/js/vendor/html2canvas.min.js
vendored
7056
gradio/static/js/vendor/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user