signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.51k stars 2.63k forks source link

APNG sticker format is inefficient #6795

Closed git-user-cpp closed 7 months ago

git-user-cpp commented 7 months ago

Using a supported version?

Overall summary

I suggest to add webm format for video stickers

I’ve been trying to upload a bunch of my Telegram stickers to Signal because I wanna use it on the regular basis. But when I convert webm video (512x512px, 3 seconds) to APNG format it occurs extremely large!

just to let you know, I have more than 800 video stickers made by me. and I’d like to upload them all but I will die before I will convert all the videos to the proper format with incredibly tiny size… that just seems impossible for now… I’m even not able to upload only 1 sticker because optimized APNG that lasts 3 seconds animation’s size equals 700Kb and more.

Well, I tried to use this converter GitHub - laggykiller/sticker-convert: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, iMessage. Written in Python. I tried to convert webm videos to apng. All the webm videos were less than 250kb and less than 3 seconds. After converting I got awful apng animations that were twice larger and got thrice worse quality compared to original webm. The quality of video turned out to be extremely sh*tty: blurred, downscaled, colors turned out to be 8bit or something. After converting mp4 to apng the result was not only the same but also much worse.

After this result I changed settings to prevent picture downscaling, fps dropping and set colors to 256. Convertion didn’t finish well… 59 Kb webm video after convertion to apng format became larger than 700Kb…

just to let you know, I've tried a lot of converters, and the result is almost the same.

P.S. Your app is great and I really enjoy using it. But if you want to compete with giants like Telegram, you need to make it as easy as possible to add visual stuff. Customers are attracted to such things.

Steps to reproduce

  1. Take a 512x512px webm file
  2. Convert it to apng format without loosing quality and FPS using GitHub - laggykiller/sticker-convert: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, iMessage. Written in Python.
  3. You won't be able to convert even 50Kb webm file because it will turn out to be 700Kb or even larger...

Expected result

Expected:

  1. Take a 512x512px webm file
  2. Upload it as a video sticker
  3. Enjoy using non-blurry, non-downscalled, beautiful, marvelous video stickers

Actual result

I'm not able to upload apng stickers with same quality as 50Kb webm stickers.

Screenshots

No response

Signal version

v6.47.1

Operating system

archlinux 6.7.5-arch1-1

Version of Signal on your phone

6.47.4

Link to debug log

No response

jamiebuilds-signal commented 7 months ago

We use GitHub Issues exclusively for tracking bug reports, please refer to the Signal community forum for feature requests, the desktop feature requests are here: https://community.signalusers.org/c/feature-requests/desktop-feature-requests/20