Skip to content

Commit

Permalink
Fix max file size
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Jul 2, 2023
1 parent 9330fe8 commit e644722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/lemmy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const PICTRS_URL = "/pictrs/image";
export async function uploadImage(url: string, auth: string, image: File) {
const compressedImageIfNeeded = await reduceFileSize(
image,
1_500_000,
990_000, // 990 kB - Lemmy's default limit is 1MB
1500,
1500,
0.9
Expand Down

0 comments on commit e644722

Please sign in to comment.