Skip to content

Commit

Permalink
resize on save
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 25, 2024
1 parent 101e5cb commit 88f58f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meme.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ namespace $.$$ {

this.data([
... this.data(),
... [ ... files ].map( file => ({
... [ ... files ]
.map( file => $mol_picture.fit( file, 800 ).format("image/webp" )! )
.map( file => ({
back: $mol_wire_sync( this as $hyoo_meme ).load_file( file ),
before: '',
inside: '',
Expand Down

0 comments on commit 88f58f0

Please sign in to comment.