Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image compression? #54

Open
omgitsraven opened this issue Aug 11, 2020 · 0 comments
Open

Image compression? #54

omgitsraven opened this issue Aug 11, 2020 · 0 comments

Comments

@omgitsraven
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant