Convert TGS to WEBP
Turn TGS images into WEBP. A looping animated WebP with every frame, its timing and its transparency, lossy at quality 90 unless lossless is set; frames that look the same after compression are merged into one longer frame.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop TGS files on the dialor turn it to pick what to do
A looping WebP of your Telegram sticker.Every frame keeps its timing and its transparency.
What you get
One animated WebP that loops. It has every frame of the sticker, at the frame rate the animation has. Transparent areas stay transparent.
The sticker is drawn at its own size, or at most 1280 pixels on its longer side. The encoding is lossy at quality 90 unless you set Lossless.
Frames that look the same after compression are merged into one longer frame. The timing stays the same.
What changes or is dropped
Expressions are not run. Values that an expression computes keep their keyframes instead.
Fonts that the file links from the web are not loaded, so its text takes an installed font. Sound is dropped.
An animation over 60 seconds or 1,200 frames stops with
resource_limit.Options
Set Quality from 1 to 100 to choose how much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Set Lossless to encode without losing anything where the format can. The result is much bigger than a lossy one.
Set Max width or Max height to shrink a sticker that is larger than the value. The shape is kept, and a smaller sticker is never enlarged. For more on this format, see resize WEBP.
TGS and WEBP.What each format is, and the options this conversion takes.
- 01 · lossless
Lossless
Encodes without losing anything where the format can. The result is identical to the input in pixels or samples, and much bigger than a lossy one.
- 02 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90
The formats
Telegram Animated Sticker
A Telegram animated sticker: a gzipped Lottie animation, 512 pixels square at up to 60 frames per second.
- Extensions
- .tgs
- MIME type
- application
/x -tgsticker - Kind
- Images
WebP
Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.
- Extensions
- .webp
- MIME type
- image
/webp - Kind
- Images
In your code.The same TGS to WEBP conversion through the API, for your app or your agent.
$ cv convert photo.tgs photo.webp$ cv convert photo.tgs photo.webpQuestions.What people ask about TGS to WEBP.
Yes. Transparent areas stay transparent in every frame.
Yes. It is a looping animated WebP with every frame and its timing.
Not by default. It is lossy at quality 90. Set Lossless to encode without losing anything where the format can, which makes a much bigger file.
The animation is over 60 seconds or over 1,200 frames. The conversion stops with resource_limit when either limit is passed.