Skip to content

Commit

Permalink
解像度落とす
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Jun 20, 2024
1 parent 75c5e42 commit fbc7666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api/v1/setting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const handler = {
await icon.arrayBuffer(),
)
//resize image
const resized = image.resize(512, 512)
const resized = image.resize(256, 256)
//encode image to jpeg
const encoded = await resized.encodeJPEG(100) // 100 is the quality of the JPEG image
//save image
Expand Down

0 comments on commit fbc7666

Please sign in to comment.