From 97189cf90f9b3da8b5beb6ca94415b7f72d82615 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 15 Mar 2024 12:52:49 +0100 Subject: [PATCH] cropper onboard preview --- src/assets/onboard/OBActionMask.png | Bin 0 -> 2357 bytes src/assets/onboard/OBEntityMask.png | Bin 0 -> 2278 bytes src/assets/onboard/OBHQMask.png | Bin 0 -> 2857 bytes src/assets/onboard/OBPlaceMask.png | Bin 0 -> 2284 bytes src/views/CardCreatorPage.vue | 77 +++++++++++++++++++--------- 5 files changed, 54 insertions(+), 23 deletions(-) create mode 100644 src/assets/onboard/OBActionMask.png create mode 100644 src/assets/onboard/OBEntityMask.png create mode 100644 src/assets/onboard/OBHQMask.png create mode 100644 src/assets/onboard/OBPlaceMask.png diff --git a/src/assets/onboard/OBActionMask.png b/src/assets/onboard/OBActionMask.png new file mode 100644 index 0000000000000000000000000000000000000000..68b1507cd0e7c335bb09f6f71bec633b75232ab9 GIT binary patch literal 2357 zcmcguX>b!|7!F#X#}pMEw6vXBQ!Z^cdn8S=OG8PUv`rx#ZMc+cv->4k+w6wjrAe#O zf*>ek5k#mK@ka%9WN->h+Yu0`3?SDJTM!92GKFFAXt4<5l(v338j4eu@rRk&{r3I# zdEWPX&&?aNW)vnTj!jglRLQm?O9@=-;k7UR(a_zxdl6iQ$t8t(s@-SPZa^WTgT_n6^O9x-dW!`k2940f!gds|qNo@{U zMCRLPA^D;N5K4oiERN%dfzl8Lf+Y&5P`~-g2Dt)LC%OMiK?*xnU#2- z!ixeDQp-5S<%&rS4;}Hw>$BTq+66fpG#EZC!1ypigJWKA$i*;PR!YGAvkZxr9hE+S zl>k{>F0lZ@GwzeE70`0jk%u5#D}bQH=r9ZaOdhbqu`!%)xl|sG6~|(r9C)EV8Tv%T z9P)WYMU*|_->8ng4hJG+07i?RDe)^JMdBPvWM}J8 zor?k}!*LAia=CPdY*I_QwB&%EA^C;^E0ss-%v!CPAgor(Y|XY9j0QbbkY8XnQUhF@ zAS;Z(f&tq+v~ADhvUs8jT!*;;d7z)#?FbG!kJxoi71K5haHxmJbx| ztbs@%q)vk)lk5!33!&INH;4i(i~>w*Sim|Ihl+KMNCA_0CT^f{JOZ_g9Pg?e5=zm8 z@c}4oAdXR(e+6?a?Ghy~0}F`vGH!tR1h*QA<%iA}%S8zqhNsgG)IaQiNWv^Y;wu1G zAcvhh0Q7Y^b44YMFt4g$@}XLB*o@E5TI2FPVMbLT9r>AaeJ-r-#LV|(S?g@=(d@3oyi^!kFt-mJYCyKU-} zlUFC>jYT;p+UxOsmdVFY2l1w<^s%Fpi9g#br(;p zYm3X=lQ^>OoA_x`ZNIi5W_c1 z`e#h2INW+L;bM0}PIJro;hBCix8+>IwC0_jQ`VacJBkgvF4r}nrAOp7N$HIN^!B^A z7ByB~JATo4Ipx%$-npsn{cP{k&9)2ujXkYLhQ;5#yF-6A+1y$m)QvlEroE}`O2Vk* zyrb)b4#(2olN*^6H9-e=*h|u5a@&rrTp7Qh#a?it)l24$5#D)XPu(u>2VZG#R*x%Q z6;w9IHQ$(&AhgXMeQ9UIxE6b%%~xN$=?8uK_#*u^Xm=0KV8_r zrSBqDyW_?0y3!k^i9HQV(tGZ7SNAR35A*cYipL(Prdv&>5375E<7+=JAZ~{Ko7k)~ KEW7iTuKE)iwL*9R literal 0 HcmV?d00001 diff --git a/src/assets/onboard/OBEntityMask.png b/src/assets/onboard/OBEntityMask.png new file mode 100644 index 0000000000000000000000000000000000000000..2984c997abbb2e7dcb8680a680a833f09958f394 GIT binary patch literal 2278 zcmdT`eQXnD7%zf+FBoTpEod$W1aMsMt6z7n%(8ZDhR(TlF#HPd?%r#UwY~1{wsw;& z1S0|6M1u^`0Y(CdD8>w-XyO9s3=lzr5+j3wbHV~l!Dt}N&G-7nFjI;D+2s1(^S-~| z^SsYzySA)!Vb;Xli6)aNtEAXnj@CBx>>WQEeJ|eh@l3Rg(#jVuFzq=$y$=av{4TG{ zWcp~`qyca*lE;=U@_B}ahR|!}p;Jw0xkoQAtr#-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Cwr1B(e{1Tu ztB6~dd_OtbF@sCT>|Z6>lRAIXo9niB9$Vs5@!9O=j2)BpChX+dnIS$+jOB9RLUq%z zb$^;5sSIm+ol5ujTC(+5Zf z&h!!KWLl&bG<+{947XA8fyn;T!e$ zzH^&f{Wm_otD5EK7$;1N4IH0dRXTT4P2|ajYUfvjj~%M|_sI~=D_tT_H5_pIMqN}D zzHnJ*uRwx#Y$)68vtvWgCY3s7#?@$+3{j}RY`f!d#%}NC2HYS+r*r|Wi&Da@j z*|oXd|7D`^jU|na8@Ia$L(Ef({x*+$KBW4*it#m9mCh=BH+*jK|5`K&&FZr|Yem{eG-^(URzs+%m9@av9@727X|b*K7Ce_)!vacXL7dRUoWCv$1aovBy9rjt@a zmq%DuUc2HLKPS>wZmzH9Hd6D0kq33QrhSVi=XWufB1+cJWGw|A}>n1B(&8 zYtNz_|DWd%Rt5g-X8oD2Vzja5TuW->4<`;byuW5nUw{8kh|e_66G-QA_y5s2O}zRe IRYu`I0A4RHw*UYD literal 0 HcmV?d00001 diff --git a/src/assets/onboard/OBPlaceMask.png b/src/assets/onboard/OBPlaceMask.png new file mode 100644 index 0000000000000000000000000000000000000000..18789296b7ea1dffdcad1c38ff2db1898bf73fa8 GIT binary patch literal 2284 zcmdT`d2AF_7+;Wr6e}c6M2f~?Y61o3+}YjE*tKqVTUubZrCqTN9=x4-yE~yfvz?iC zw+#>@Q6Wf-@hCz$5;P)#D)tXf1u+y2rXmO!Yb3RR(nAV~1_7yW_M(`o#Q)r6j_SFSI52gp!E@%bn*_)|77?Txx& zST1kTU`>n9FSaZbc?mCmJSV#-E+7pNXaFo8saJF%?!*&{1@vw%Q#h7@7|Wcv%e08q zdaE$EszHn=X+orF8guX@<6uPA5d?v`7)!G(MHfXY(P!}~hYRIaB znQB2mZ8V%XI&{*TNYv}iXjk-9&`|iOIEYdVNmG%C>0$z{8`bdkSw=xw+i9nbJP_%?fO-2O->OHF1XsWF6IB~Q?O0p!dl8xnAS|S*mjU%`q4+$Vi zfCvVIoWsUi*`Sq8>lux2E8|!P&w5-|YYD@Ymh!Gro5xY;u=8c^GFKs==2j@W0TdCY zZOh2E4RAIlz%Yb0=%5LXvvLG4!a^dz1_C_fB+&*O3BKUgATU(Tud4OwqOD3t0%JLn z#%6heC@W@c3Pw<%2N=+aqXOm#njvV;Zx*m!VEH+;L!jv-)T>Hzuz6G{FVNOIps0Z) zV1R!GOQH}|wFp23Bu799Qc)#@W10L2Zna+3kYRK>Yr6hX2P6~bftuU|r7}&8V2KhI zBF6$C*#jb;;!FQI^;Dw6&2~>6u3XkpDw;FP zslKg&4I`FPi}fR|n(uZHkYkiNmPWc;L?zR9XJnGN5#ua5DidrpE0KhF=~-<` znRyQtWK~1ceD;yS0rVLus_?k{@n;9S7HQq|6p!o1tyW)K->kRF=ewuin|55HCXQ=5 zckHLhXZ9{yH~nnMJ2ec`~I!L^5S7fye7VDh||y?O8SbzX7Rbk5q}dum4R zOWW&)et-V6{5N)L@Y_$v%(m~d|9nEvs@x}>KP+}Xr>!_VRI@RE^ML)@i8Jd%kL5T! z8m3mprp2XhW%K0^Z>;gUUs*l4eCcsoEIH8L9bLWXwTD~1#b54yV)^Ow1+OeGI2i8Z zIzO56jJ09*wk_G@+xAUYDi0nEoLo}7`_j>@njbnhy~!Ka%aaSI+hhFX(^t`?>d%J9CG=x_bU2q5n`Fzkhqz z)yrqP$oD(0clGsTH9l}|NwM?euJ0yHKQ{Ah-Su$)&2NM`Q|-lVwV|GqzqLNHwP9PH jV@KxJH{sZdmAA%b=M>a!Flh8=!(yo@^?BM$mcH;OYv3F) literal 0 HcmV?d00001 diff --git a/src/views/CardCreatorPage.vue b/src/views/CardCreatorPage.vue index 673a4a46..b2bb3509 100644 --- a/src/views/CardCreatorPage.vue +++ b/src/views/CardCreatorPage.vue @@ -182,7 +182,7 @@ @paste="onPaste" >
-
- + +
+ +
+ + + + + + + + +
{ this.srcToFile(b64, "image.jpg", "image/jpeg").then((file) => { uploadImg(file, env.cardImgMaxKB, (result) => {