Which file belongs in a Discord sticker slot?
For an animated server sticker, start with a 320 × 320 pixel canvas, a running time of five seconds or less, and an exported file at or below 512 KiB (524,288 bytes). The guild sticker API accepts GIF and APNG among its input formats. The Discord sticker maker creates an APNG that fits the square, keeps transparent margins and checks the finished byte count. A custom emoji or an attachment sent in chat uses a different upload field. A GIF that sends successfully in a message can still fail as a sticker. Discord sticker resource
Consider a waving fox drawn on a wide strip. The artwork includes the tip of its tail, the paw at full stretch and empty space on either side. Those are three different reasons to include a pixel in the final image. Keep the paw and the tail throughout the wave. Remove the empty space if it makes the fox too small to read. Make those framing decisions before spending time on compression.
Compare the two formats where it matters
| Question | Animated GIF | Animated PNG |
|---|---|---|
| How does it show the background? | A frame can reserve one palette index as transparent. | An RGBA image can store a separate opacity value for each pixel. |
| What happens at a moving edge? | A painted edge can contain colors inherited from the old background. | Partial opacity can describe a smooth edge if the artwork still contains it. |
| How does the next frame replace the previous one? | A disposal setting tells the player what to do with the displayed area. | A frame can blend over earlier pixels or replace its rectangle outright. |
| How do you recognize an animation? | Look for several images and their delays in the timeline. | Animation and frame control chunks describe the sequence inside a PNG file. |
An APNG conversion preserves the pixels available to the converter. Suppose the fox was flattened onto white before the GIF was made. A pale line around its ear consists of visible pale pixels. Saving that line into an APNG preserves it faithfully. If you have original transparent artwork, start there. With only the GIF available, remove the unwanted edge and examine it against a dark background before exporting. PNG specification and GIF89a specification
Fit the whole gesture into the square
Play the original once to find the two frames with the widest combined reach. Pause on the outstretched paw, establish a square crop, then check the opposite extreme. A centered crop based on the first pose can take half an ear off the third. Check the silhouette at a modest on-screen size. If an eyebrow or a single tooth carries the entire reaction, a closer crop may communicate more than a full body shot.
When the whole wide shot matters, let the sticker exporter fit the longest dimension into the square and center the other dimension on transparent padding. A 640 × 360 landscape becomes a 320 × 180 image in the middle of a 320 × 320 canvas. That leaves 70 pixels above and below. A crop lets you spend those rows on the subject instead. For a tall character with a waving tail, inspect both arrangements and choose the one that keeps the gesture recognizable.
Keep the beat and reduce the bytes
A five-second cap describes one pass from the first pose through the last. Add the frame delays to find the duration. Twenty frames held for 100 milliseconds each make two seconds. An opening hold of another 500 milliseconds makes two and a half seconds even if no new drawing appears during the hold. Leaving the file playing on repeat for a minute has no bearing on the length of a single pass.
If the sticker is too heavy, identify the expensive motion. A stationary face with a moving hand changes a small area. A shimmering texture behind the same hand changes pixels across the canvas on every beat. Replace the texture with clear space when it adds little to the expression. Trim the frames before the greeting starts. To discard an intermediate drawing, give its time to a nearby pose if you want the wave to last just as long.
Run the sticker export after each substantial change. Discord measures encoded bytes. The size of the original GIF or a full set of extracted PNG files does not predict the finished APNG size. The GIF to APNG converter also produces animated PNG for general use. Use the sticker exporter when the square and the upload limit are part of the job. For a different Discord slot, the Discord GIF compressor shows the corresponding presets.
Diagnose an export that looks right in the editor
Open the downloaded file from disk and watch at least two passes. A sticker download may end in .png because the animation lives inside a PNG container. A file manager can show its thumbnail as a still. Check the actual file in a player that supports APNG, and check the frame changes at the paw. Renaming an ordinary GIF to .png leaves its internal format untouched. MDN image file types
A dark box around the entire fox usually calls for a different fix from a faint outline around one ear. For a box, check whether you can actually see the editor's checkerboard around the subject. For an outline, switch between dark and pale preview backgrounds, looking closely at the edge pixels. For a trail, step through the original as well as the export. If the earlier paw is already visible in the source frame, a new container simply carries that drawing forward.
If the file plays locally and the upload still fails, inspect the server sticker slot, the account's permission to create expressions, the exact dimensions, one-pass duration and file size. A rounded display such as 512 KB can conceal a small overage. Check the number of bytes in file properties. Save the animation you submitted alongside its editable source so you can identify which version drew the rejection. Leave a useful name and related emoji for the server members who will have to find the sticker again.
Sources & Primary References
- Discord Developer Documentation, Sticker Resource gives the guild upload formats, maximum bytes, canvas dimensions and duration.
- W3C PNG Specification, Third Edition defines animated PNG chunks, frame delays, alpha and blending.
- MDN guide to image file types and formats covers GIF and APNG characteristics and browser support.
- CompuServe Graphics Interchange Format, Version 89a defines GIF transparency, timing and disposal.