# Troubleshooting TinyImage
# Layers must have export settings to be compressed
TinyImage works by detecting the export settings/formats you've set on any layers in your Figma page and allows you to export them as compressed images using the TinyImage plugin.
For more details about the fundementals of Figma export settings and how they work, please see the official Figma guide to exports in Figma.
Please ensure you've added export settings (by clicking Export + in the right hand Figma column) to any layers you would like to compress, otherwise they won't show up when you open TinyImage, just like the standard Figma exports work.
# PNGs and PDFs take longer to compress
Compressing PNG and PDF exports can take a bit longer than JPG and SVG exports, especially if they're very detailed or have large dimensions. TinyImage will warn you if an image is too large to compress.
# GIF transparency
The GIF format doesn't support alpha transparency. This means that pixels either need to be completely transparent or not; any pixel with lower than 50% opacity will be transparent, while any pixel with opacity greater than 50% will be opaque.
# Images exported 1px bigger/smaller than their size in Figma
There's a strange bug in Figma related to using "sub-pixels" in your frames/image properties, which can cause your exported images to be "rounded" up or down to a different size. The solution to this is to ensure that the frame or parent frame (artboard) that you're exporting doesn't contain any sub-pixel values (eg. 1000.08) by removing them from the property (eg. 1000). This should export the image in the dimensions you expected.
For more details, there's a thread on the Figma forums discussing the issue.