Compare commits
2 Commits
37cde1713d
...
ec44370d7e
Author | SHA1 | Date |
---|---|---|
Max Bradbury | ec44370d7e | |
Max Bradbury | 013e1e1c8c |
|
@ -120,10 +120,6 @@ textarea {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
#crop canvas {
|
||||
height: 32vh;
|
||||
}
|
||||
|
||||
#preview {
|
||||
width: 256px;
|
||||
height: 256px;
|
||||
|
|
|
@ -78,7 +78,7 @@ async function run() {
|
|||
const textareaGameDataInput = el("game-data");
|
||||
const textareaGameDataOutput = el("output");
|
||||
|
||||
const cropper = new Cropper({ width: 128, height: 128 });
|
||||
const cropper = new Cropper({ width: 192, height: 192 });
|
||||
let cropperRendered = false;
|
||||
|
||||
// hide all pages except start page
|
||||
|
|
|
@ -83,6 +83,7 @@ pub fn load_image(image_base64: String) -> String {
|
|||
Ok(image) => {
|
||||
match image::load_from_memory(image.as_ref()) {
|
||||
Ok(image) => {
|
||||
let image = image.resize(128, 128, CatmullRom);
|
||||
state.image = Some(image);
|
||||
"OK"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue