Cryptocurrency donations for bots, groups and channels
Show a button for sending quick donations to maintainers of bots, groups or channels using cryptocurrency. This could use either an established cryptocurrency like Bitcoin, Etherium, EOS, etc. – or some…
➊ Recompression causes generation loss (see https://en.wikipedia.org/wiki/Generation_loss for the definition, see also https://youtu.be/FtSWpw7zNkI for an example of generation loss in AVIF files compared to other image types). The most popular pictures (the pictures that are saved and sent again the most often: the memes, the spectacular photoes, the screenshots of awesome news, etc.) would become the most affected, the most “punished” by the quality loss; and they don't deserve that. Therefore recompression efforts on the server side are likely to incentivize unofficial clients to create AVIF files of exorbitant quality and filesizes (when compressing PNG-to-AVIF, for example) and thus to lengthen the delivery in order to ensure that the only significant quality loss is on the server side.
➌ Automatic compression is not very intellectual. The software is likely to try only one setting of the encoder (or maybe two or three more settings if the result of the first compression does not fit in some self-imposed limit) because it prioritizes fast delivery. And usually that is correct, that is the priority. Telegram users, however, can go much further if necessary. For example, it's not unlikely for digital artists (or for authors of some photo documentary, or for hardcore fans visually quoting their beloved masterpieces, etc.) to accept slower encoding for better quality, or to play with encoder's settings for dozens of minutes, or even to find newer or experimental encoders (that would never make it to Telegram apps) with different settings and algorithms if they are able to reach somewhat better AVIF quality within the same public set of constraints. Of course, that may happen only if that set of constraints is indeed public, and obeyed, and the results are not ruined by further recompression.
⒈ Privacy protection by removing metadata (such as geotags) from the images.
⒉ Steganography suppression by removing behind-the-tail data (similar to RARJPEG) from the images.
⒊ Rejecting the images that won't fit in the enforced constraints.
It's okay for Telegram to enforce many constraints on AVIF images as long as the rules are public, for example:
① “Filesize shall not exceed 2 MB” (such is the current rule for stickers in WebP files).
② “File shall not contain more than 6553600 pixels” (such is the current rule for stickers in WebP files in Telegram Desktop).
③ “The number of bytes shall not exceed the half of the number of pixels” (if Telegram decides to limit the quality of smaller files).
If the image does not fit, then it might be silently “sent as a file” (for example, that is exactly what currently happens if a WebP file is larger than 2 MB and thus deemed unfit for a sticker in Telegram) or rejected with an error.
When a PNG file is being sent, Telegram should offer PNG-to-AVIF compression as an alternative to PNG-to-JPEG and probably even prefer the former.
Telegram should also consider using AVIF images (instead of JPEG images) where recompression is desirable: AVIF thumbnails, AVIF small avatars, AVIF previews (under messages that refer to images or to illustrated web pages), etc.
Telegraph (the site, not the Graph Messenger) should also support AVIF images and let its users upload AVIF files or embed them by URLs pasted on empty lines. The uploaded AVIF files (like the already supported PNG uploads) should not be recompressed after upload or face worse limits than the usual 5 megabytes.
① Android 12 is released and it supports AVIF: https://android-developers.googleblog.com/2021/10/android-12-is-live-in-aosp.html
② Firefox 93 is released and it supports AVIF: https://www.mozilla.org/en-US/firefox/93.0/releasenotes/