Skip to content

Commit ccfc7e0

Browse files
committed
Reduce + recode images to JPEG if they are too huge (#3956)
I.e. > 500K for the balanced media quality and 130K for the worse one. This can remove animation and transparency from PNG/WebP, but then a user always can send an image as a file. Also don't reduce wide/high images if they aren't huge. Among other benefits, this way most of PNG screenshots aren't touched. Also remove Exif from all images, not from JPEGs only.
1 parent d93c7e1 commit ccfc7e0

File tree

6 files changed

+176
-135
lines changed

6 files changed

+176
-135
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Check provider database with CI. #4099
1010
- Switch to DEFERRED transactions #4100
1111
- Remove metadata from avatars and JPEG images before sending #4037
12+
- Reduce + recode images to JPEG if they are > 500K in size #4037
1213

1314
### Fixes
1415
- Do not block async task executor while decrypting the messages. #4079

0 commit comments

Comments
 (0)