mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-18 12:50:30 +08:00
resize to max 600 px
This commit is contained in:
parent
e500ab02bd
commit
47de3d23a9
@ -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…
x
Reference in New Issue
Block a user