tglib icon indicating copy to clipboard operation
tglib copied to clipboard

Image compression?

Open omgitsraven opened this issue 5 years ago • 0 comments

So, here's a strange situation.

In the telegram desktop client, I sent myself the following file as a photo (i.e., compressed): RAW

When I look at the result in the desktop client, I see it with a small amount of compression added: COPY and if I select 'copy', I can paste a version that looks identical to the screenshot.

However, if I use tglib to download all sizes of that file, I only get two: one tiny thumbnail, and one full-sized file that looks like this: FROMNODE

which is visibly even more compressed than the version shown in the desktop client!

Is it possible that tglib is accidentally performing lossy compression when it writes these images out to disk? Because if not, does this mean that Telegram's servers don't actually report all the versions of a photo to TDlib clients?

omgitsraven avatar Aug 11 '20 02:08 omgitsraven