mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
resize to max 600 px
This commit is contained in:
parent
9a9c49c69d
commit
d63eca24b7
@ -80,7 +80,7 @@ const image_input = {
|
||||
submit: function() {
|
||||
var io = this;
|
||||
if (this.state == "IMAGE_LOADED") {
|
||||
resizeImage.call(this, this.image_data, 300, 300, function(image_data) {
|
||||
resizeImage.call(this, this.image_data, 600, 600, function(image_data) {
|
||||
io.io_master.input(io.id, image_data);
|
||||
})
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ const image_input = {
|
||||
submit: function() {
|
||||
var io = this;
|
||||
if (this.state == "IMAGE_LOADED") {
|
||||
resizeImage.call(this, this.image_data, 300, 300, function(image_data) {
|
||||
resizeImage.call(this, this.image_data, 600, 600, function(image_data) {
|
||||
io.io_master.input(io.id, image_data);
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user