zhukov / webogram

Telegram web application, GPL v3
https://web.telegram.org
GNU General Public License v3.0
7.95k stars 2.36k forks source link

Media Resize Support (Video and Pictures) #236

Open dneto82 opened 10 years ago

dneto82 commented 10 years ago

Please support media resize.

zhukov commented 10 years ago

What do you mean? Which kind of resize?

stefan-niedermann commented 10 years ago

maybe he means compressing before sending a huge video file?

dneto82 commented 10 years ago

Sorry for delay.

Its correct. Im talking about compress and resizee before sending a video or big pictures..... such WhatsApp do.

stefan-niedermann commented 10 years ago

personal i think, if this will be implemented, it should be optional. I hate receiving photos from friends, risized to 480x800 px, not enought to print a small photo :-/

zhukov commented 10 years ago

@stefan-niedermann same for me. While there are some options for Javascript image resizing, I don't find this feature useful, as Webogram is mostly a desktop version of Telegram. People have big screens and can download images to view in full size.

As for the videos quick googling didn't give any production ready way to manage the task.

suoko commented 8 years ago

http://firefogg.org could be a solution ? Maybe this https://www.webrtc-experiment.com/ffmpeg/webm-to-mp4.html ? Actually this ? https://bgrins.github.io/videoconverter.js/ I also found out that many people don't have telegram yet so what about using those unused SMS you find in your mobile plan to reach people without telegram anyway: they'll simply receive a link of a webchat via SMS!

suoko commented 8 years ago

This demonstrates that it's possible to convert vids via js: https://video-funhouse.herokuapp.com/

TitanNano commented 6 years ago

@zhukov large screenshots from macOS with retina display are sent as files since they are to big and not compressed when sent via telegram web.

fraunos commented 6 years ago

Currently when sending Video using Upload Media option, it will not embed it in a player if it's bigger and will send it as a file. I think it should send the original file when sending as a file and a compressed one for embedding, when sending as Media, but allow downloading the original too. I think this is how mobile Telegram apps behave now. Uploading pictures is debatable, but uploading Video as Media should allow to view it in the chat.