Skip to content

Commit

Permalink
fix image issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Abid committed Aug 5, 2020
1 parent 82c2b5a commit 4ac66a6
Show file tree
Hide file tree
Showing 8 changed files with 14,118 additions and 22 deletions.
5 changes: 3 additions & 2 deletions build/lib/gradio/static/css/interfaces/input/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions build/lib/gradio/static/css/interfaces/output/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
align-items: center;
}
.output_image {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: contain;
display: none;
}
4 changes: 1 addition & 3 deletions build/lib/gradio/static/js/interfaces/input/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
7,056 changes: 7,052 additions & 4 deletions build/lib/gradio/static/js/vendor/html2canvas.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions gradio/static/css/interfaces/input/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions gradio/static/css/interfaces/output/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
align-items: center;
}
.output_image {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: contain;
display: none;
}
4 changes: 1 addition & 3 deletions gradio/static/js/interfaces/input/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
7,056 changes: 7,052 additions & 4 deletions gradio/static/js/vendor/html2canvas.min.js

Large diffs are not rendered by default.

0 comments on commit 4ac66a6

Please sign in to comment.