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.

  1. 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.

  2. 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.

  3. 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.

  1. 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.

  2. 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
  3. 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
  4. 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

From · TGS

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
To · WEBP

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.

terminal
$ cv convert photo.tgs photo.webp
$ cv convert photo.tgs photo.webp

Questions.What people ask about TGS to WEBP.

01OF 04

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.

More conversions.Other ways in and out of TGS and WEBP.