• Copy Link
Deliver PNG images faster by refraining from JPEG compression where it results in larger JPEG files
Сергѣй Юрьевичъ Соколовъ, Feb 2, 2021 at 10:06
OpenSuggestionGeneral

The difference between sending an image (as wide as the message) and sending a file (iconified and accompanied by a filename) is represented in Telegram's user interface by the concept of compression; for example, “files” are sent from Telegram on Android if “Send without compression” is chosen, “images” are sent from Telegram Desktop if “Compress images” checkmark is checked.

However, sometimes JPEG compression is not really necessary for the images and they could be better delivered without compression.

Twitter understands that. Since January 2019 (see https://twittercommunity.com/t/upcoming-changes-to-png-image-support/118695 or the attached screenshot of the most relevant part) Twitter refrains from delivering PNG images as JPEG if the image is small enough (does not exceed 900×900 pixels), or if the PNG format implies that its pixels are already better compressed than any decent JPEG could (1-bit, or 2-bit, or 4-bit, or paletted 8-bit pixels in PNG), or if an attempt to compress PNG to JPEG is actually made but it results in a larger file.

Hence my suggestion here is that Telegram could really follow Twitter's example or at least follow the best part of it: deliver PNG images “as is” (instead of compressed in JPEG) where such compression results in larger JPEG files.

It looks so silly when a Telegram client compresses PNG image to JPEG and it immediately knows that the resulting JPEG file is larger (and thus it would be faster to deliver the uncompressed PNG) and that JPEG's quality is also worse (because of the generation loss; see https://en.wikipedia.org/wiki/Generation_loss for the definition), but then that JPEG is still sent nevertheless. It looks silly, but still it happens. You can see it for yourself in three steps:

1️⃣ Download https://pbs.twimg.com/media/ESocaLJXYAAdwax?format=png&name=medium and confirm that the PNG file is 79923 bytes long.

2️⃣ Post that file in Telegram from Telegram Desktop version 2.5.8 (in the “Compress images” mode). I've just posted https://t.me/tginfochat/1056537 for example.

3️⃣ Use Telegram for Android v7.4.2 (2227) to download the resulting JPEG and see that is 173184 bytes long (116.69% larger than the original PNG; that's more than twice as larger).

(You have to use Telegram for Android to see the real filesize because Telegram Desktop further compresses JPEG files when saving.)

Now you know that some images (such as screenshots) could be delivered much faster (about twice as fast, in fact) if the client refrains from “compressing” them to JPEG format. Smaller PNG files could also lessen server-side storage costs.

The client is not the only place where such compression is to be avoided. Some further JPEG compression happens on the server side, and in the case of such small PNG files that compression should be avoided likewise. (Alternatively you may decide to vote for the suggestion Stop server-side JPEG-to-JPEG recompression #1058 where the full stop of server-side JPEG compression is proposed.)

831Copy link
Comments2
D
  • Deselect
  • Deselect all
  • Delete all
Deleted AccountMay 18, 2021· Pinned
Also, PNG with 256 colors (8-bit) and B/W take much less size than JPEG on any text, diagrams, scheme, chart, screenshot.
B
  • Deselect
  • Deselect all
  • Delete all
Bruno TrazziniJan 12, 2022· Pinned
I have issues with compressing screenshots on MacOs with retina display.
Login
  1. Bugs and Suggestions
AllIssuesSuggestions
by rating by time

30761 Cards

Added
About this platform
All users are welcome to create new entries, view existing entries and vote on them. What is this for? This platform is a place where users can vote for feature suggestions for Telegram or report issues…
Dec 23, 2020ClosedTip
87
Fixed
Media shared via external share cannot be sent as file
Description When trying to send a media file (photo or video) from the phone's gallery to Telegram via the standard system "Share" button, the option to "Send as file" is not working correctly. Steps…
May 28Issue, Android
26
Fixed
Telegram ignores default iOS microphone for voice and video messages recording
Telegram app ignores default mic setup: in Settings of my phone I chose iPhone Microphone as default recording device. When starting recording audio messages in VK, Whatsapp and Voice Memos the default…
Jan 10FixedIssue, iOS
29
Fixed
Protect content not applied for RichText with photos
You can download photos from RichText even if the chat has enabled the protect content See example https://t.me/No_Forward/50 Steps to reproduce 1. Go to any chat thar enable protect content 2. Send RichText…
Aug 16Issue, Android
1
Added
Option to disable the Stories feature
Official Response: Stories take up no extra space in the Telegram UI – but if you'd prefer not to see stories from certain contacts, hold down on their profile picture at the top of your screen and select…
Jul 21, 2023Suggestion, General
15538034
Added
Shadowsocks proxy support
Add Built-in VMess, Shadowsocks, SSR, Trojan-GFW proxies support The ( vmess / vmess1 / ss / ssr / trojan ) proxy link in the message can be clicked
Apr 11, 2021Suggestion, General
1207621
Added
Disable "New Contact Joined" chats
Users receive a notification when one of their contacts becomes available on Telegram. It is currently possible to disable the notification: the new chats will appear in the list without sending a notification.…
Dec 11, 2019Suggestion, General
994434
Added
Improve the ability to search chat history for Asian regional languages, such as Chinese and Japanese
Improve the ability to search chat history for Asian regional languages, such as Chinese and Japanese. Telegram's chat history search function is based on words, and is suitable for languages such as…
Dec 23, 2020Suggestion, General
1843816
Added
The sticker text is covered of the time of the message
The time of the message is displayed on the sticker. It is not comfortable to read sticker. It often happens that time covers part of the text on the sticker. And if the sticker is sent from the channel…
Mar 20, 2022Android, Suggestion
132689
Added
Update Iran Flag Emoji to Sun & Lion
PSA: کاربران گرامی دقت داشته باشید که نیاز به ارسال کامنت‌های اسپم در این پیشنهاد نیست و لایک کردن پیشنهاد کافیست این اقدام هم‌وطنان که به صورت گروهی در حال اسپم کردن بخش پشتیبانی و پلتفرم پیشنهادهای…
Jan 9FixedSuggestion, General
232168
1:52
Added
Emergency passcode to hide chats
Option to set an alternative passcode ("double bottom") that either opens a limited set of chats, opens a different account, or destroys one of the connected accounts completely when entered. Use cases…
Feb 27, 2021Suggestion
972060
Added
Notify all group members
An option to notify all group members or admins using a special mention (e.g. @all and @admins). Use cases Important news and major updates in big communities. Potential issues Some group admins already…
Nov 4, 2019Suggestion
1211821
Added
Chat permissions: Can Talk
Please add chat permission: Can Talk. How it works If it's enabled, user can talk in a voice chat. Otherwise user is muted. For users In apps it would be useful for chat owners - they will be able to…
Aug 3, 2021FixedSuggestion, General
91783
Fixed
App's badge counter shows unread messages when all chats are read
Badge counters inside the app and on the app's icon may sometimes show unread messages while there are no unread chats in the list. Workaround Tap 10 times on the Settings tab icon > Reindex Unread Counters.…
Nov 12, 2020FixedIssue, iOS
4911546
Added
Unlimited favorite stickers
Increase the limit for favorite stickers. The current limit is five stickers. When you add another one, the first sticker is replaced. Use cases Choose a limited set of stickers which you will always…
Dec 11, 2019Suggestion
721524
Added
Choose a different default folder instead of "All Chats"
This feature is available as part of Telegram Premium. An option to pin one of your folders as the main folder instead of All Chats. When you open the app, it would show you the folder you chose. Pressing…
Nov 16, 2020FixedSuggestion
701474
Fixed
Live streams have low speed audio resulting in almost no sound
Since the latest stable update, audio from Live Streams is missing. The audio track is actually slightly audible if you max out the volume of your device, but it will be barely noticeable, and feels extremely…
Jan 4, 2025FixedIssue, iOS
81375
Added
Partial reply
Reply only on parts of a message. This would be very useful, if someone wrote a very long message and you only want to refer to one or two sentences - or even only one or a few words.  If you click on…
Jan 23, 2021FixedSuggestion, General
681373
Added
Allow adding Bots (Web Apps) to the Attachment Menu to all bots
Now only selected bots can be added to the Attachment Menu. But as a developer of inline bots, I see this as a barrier to make telegram a better messenger Let users decide, what they want to see in their…
Apr 17, 2022Suggestion, General
51282
Added
Remove 1 million posts limit in chats
When chat that connected to channel reaches 1 million posts they going to "archive" and become unavailable so all comments on channel posts is gone too. At the same moment channel posts that "pinned"…
Apr 23, 2021Suggestion, General
91261
Added
Disable iOS design in Android app
Android app should follow Material Design, not iOS patterns The recent Android update (12.4.*) introduces design elements directly ported from iOS, creating a non-native experience that ignores platform…
Feb 7Suggestion, Android
4291225
Fixed
Incorrect Search Ban for Quality channels
Incorrect Search Ban on one of The Largest Telegram Channel Steps to reproduce My Channel @Funny is one of the largest English Entertainment channel with Over 250K Subscribers & great Engagement. But…
Dec 15, 2024Issue, General
501150
Added
Alternate profile pictures
When setting a profile picture or video that's only visible to contacts (or certain users, groups etc.), allow choosing an alternate picture or video that will be shown to everyone else. Use cases -…
Nov 17, 2020FixedSuggestion
561135
Added
Armenian language official translation in telegram
Dear Telegram administration. We ask you to make the translation of the Armenian language official in telegram. Not a few people speak Armenian, and a full-fledged Armenian segment has already formed…
Jan 8, 2023Suggestion, General
1861081
Added
Better global search
Make global search a place to find all communities in channels and public chats.
Feb 9, 2021Suggestion, Android
331055
Added
Add Instant View to Telegram Desktop
Add Instant View to Telegram Desktop. The feature is there right now for MacOS Telegram App, but missing from regular Telegram Desktop. Preferably, it should open an article in the existing telegram window…
Dec 23, 2020FixedSuggestion, Telegram Desktop
441047
Added
Transfer ownership if creator account was deleted
Option to transfer ownership in groups and channels if the creator was deleted so the first admin with all permissions will become a creator! Thumbs up if you want this to happen 👍 App: all
Dec 24, 2020FixedSuggestion, General
1451033
Added
Allow site owners to make their own Instant View templates
Instant View templates are currently created and maintained by Telegram, the list of supported websites is expanded gradually. Some site owners would like to get IV support for their websites sooner.…
Jan 23, 2021Suggestion, General
531033
Added
NTF Stickers
Dear Telegram Team, This is a proposal to enhance the Telegram ecosystem: the introduction of NFT stickers — unique digital stickers based on blockchain technology, which can not only be used in chats…
Oct 10, 2025Suggestion, General
30973
Added
No one open the video in the groups conversations without the admins permission
During the meeting conversations in telegram, some members want to speak so when we open the Microphone for them to speak, they open video with sexual content. This leads to annoy the members and they…
Jan 30, 2023Android, Suggestion
8970
Fixed
Status displaying issue for iranian numbers
Title: Unreasonable Restrictions on Iranian Accounts Description: Viewing Premium Statuses: Non-premium Iranian accounts cannot see the statuses of premium users. However, purchasing a premium subscription…
Oct 26, 2024FixedIssue, Android
8946
Added
Proper support for inline video messages fro bots
Proper support for Video Notes (aka round videos) in inline mode for bots
Nov 9, 2022Suggestion, General
28930
Added
Hide the messages of certain users in a group chat
Hide the messages of certain users in a group chat. Some users might prefer to hide the messages of certain users, so they can have a cleaner conversation. The option should be personal and independent…
Feb 5, 2021Suggestion, General
25914
Added
An option for a channel/group owner to better interact with subscribers without the risk of being reported as spammer by trolls.
An option for the owner of a channel or a group to set a visible flag informing all new members that they might be privately contacted one single time by the owner/admins of the channel/group they are…
Feb 26, 2022Suggestion, General
13903
Added
Custom icons for folders
Add the ability to choose icons for folders on mobile platforms – like in Telegram Desktop and Telegram macOS. Sync them on all devices. Use cases - Find folders you're looking for more easily. - Save…
Nov 17, 2020Suggestion, iOS, Android
21890
Added
Add an option to disable auto-ordering of sticker packs on mobile
Add an option to disable auto-ordering of sticker packs. If you have a lot of packs, it make sense to order them in a way that makes it easy for you to find the right sticker. This has been the behaviour…
Sep 19, 2022FixedSuggestion, Android, iOS
221886
Added
Separate passcode lock for specific chats or Archive
Option to lock certain chats with a separate passcode. On a chat-by-chat basis, or for an entire Chat Folder, e.g. the Archive. Use cases Family iPads and other shared devices. Can also be used in environments…
Nov 5, 2019Suggestion, General
55867
Added
Call transfer between devices
Add an option to seamlessly transfer ongoing voice and video calls between different devices with one account: e.g., from a mobile phone to a desktop PC and vice versa.
Dec 23, 2020Suggestion, General, Calls
21845
Added
More Two-Factor Authentication methods
An option to add an authenticator app with temporary, one-time passwords (e.g. Authy, Google Authenticator) as another second factor.
Nov 5, 2019Suggestion
26835
Added
Option to disable AI icon in text input field required
Add the Option to disable the AI Pop Up / Remove AI features. As disturbing AS the Implementation of AI into Messengers is. We need to be able to choose! And many people might just click on the pop-up…
Apr 1Suggestion, General
359783
Added
Tmail - Telegram Email Service
Telegram is a great messenger, but it can also be a great Email service. So without further introductions, let's start. It may seem like Email service is for the previous generation, but many people,…
Jan 24, 2021Suggestion, General
71757
Fixed
Missing parts of message history
Your help needed: The team needs help with app's logs. Messages are missing on mobile but visible on Telegram Web and Desktop. Notifications of new messages are received, but messages don't appear in…
Feb 15, 2022Issue, Android
88747
Added
Stories / Statuses
An option to share moments (media, like photos or short videos, texts, etc.) with your mutual contacts (this can be adapted with granular privacy permissions) to view, interact, and forward. Such statuses…
Dec 12, 2019FixedSuggestion
952713
Added
Allow opening media directly from the preview.
When someone posts a link, Telegram generates a link preview with title, media and some of the text from the page linked. Ever since the October 2023 update, clicking or tapping anywhere inside the preview…
Oct 29, 2023Suggestion, General
68706
Added
Different background images for each chat
A feature to set a individual wallpaper for specific chats. (f.e. One wallpaper for a specific group, another for a chat with a friend...) Use cases This would make navigation between chats easier, especially…
Nov 5, 2019FixedSuggestion, General
39690
Added
New privacy option to not allow private messages from non-contacts.
Like many have asked before (for different reasons) for years There is a need by some people to be able to avoid private messages for non-contacts. Why?: There are many reasons on why to add this feature.…
Oct 24, 2021FixedSuggestion, General
95661
Added
Change file names in Telegram
Option to change file name on Telegram without needing to re-upload the file. App: all
Dec 24, 2020Suggestion, General
20642
Added
Support linking TON DNS and Tonsites to profiles (via Fragment)
Telegram's built-in browser already supports .ton and .t.me sites natively. However, users cannot link TON Domains or Tonsites to their profiles. - Link .ton domain to profile (with Fragment verification)…
Apr 16Suggestion, General
134640
Added
Syntax highlighting in code blocks
An optional extension to the backtick syntax to specify a language to highlight. Similar examples are the likes of Gitlab and GitHub comments.
Dec 27, 2020FixedSuggestion, General
48639
Added
Requests to join group or channel
If enabled, the user attempting to join the group/channel will only be able to view the content and send things after being accepted by an administrator (optional: only admins who have the "accept/decline…
Nov 23, 2020FixedSuggestion, General
154584