Convert TGS to APNG

Turn TGS images into APNG. A looping animated PNG with every frame of the animation and its transparency, without loss.

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 animated PNG of your sticker.Every frame and its transparency, kept without loss.

  1. What you get

    One APNG that loops and holds every frame of the animation. Transparency is kept, so the sticker still sits on any background.

    The animation is drawn at its own size, or at most 1280 pixels on its longer side. It plays at its own frame rate.

  2. What changes

    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 text takes an installed font. Sound is dropped.

  3. Length limit

    An animation over 60 seconds or 1,200 frames stops with resource_limit.

    For other conversions, see every TGS conversion or every APNG conversion.

TGS and APNG.What each format is.

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 · APNG

Animated PNG

Animated PNG, full-color animation with alpha.

Extensions
.apng
MIME type
image/apng
Kind
Images

In your code.The same TGS to APNG conversion through the API, for your app or your agent.

terminal
$ cv convert photo.tgs photo.apng
$ cv convert photo.tgs photo.apng

Questions.What people ask about TGS to APNG.

01OF 04

Yes. The transparent areas of the sticker stay transparent.

Yes. The output is a looping animated PNG.

No. The frames are kept without loss.

The animation is over 60 seconds or over 1,200 frames. Conversions above either limit stop with this code.

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