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