Skip to content

Commit

Permalink
this should allow unscaled gifs to be member images
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaomiDEV committed Jan 10, 2025
1 parent 135a2c5 commit 1b463a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modals/MemberEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
async function modifyPicture(){
const files = await getFiles();
if(files.length){
if(files[0].type == 'image/gif'){
member.value.image = files[0];
return;
}
member.value.image = await resizeImage(files[0]);
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/views/options/SystemSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
async function modifyPicture(){
const files = await getFiles();
if(files.length){
if(files[0].type == 'image/gif'){
system.value.image = files[0];
return;
}
system.value.image = await resizeImage(files[0]);
}
}
Expand Down

0 comments on commit 1b463a5

Please sign in to comment.