Twitter is removing support for transparent images
Twitter users, especially those that have used the short-form social network to share their art, are in for a disappointing change in a couple of months: the discontinuation of support for transparent images.
As announced in a post on its official developer forums, Twitter will remove support for PNG images with any transparent pixels on February 11th. This post details the change and its justification:
What are the changes being made?
The way Twitter handled PNG uploads in the past was not always consistent and could lead to large PNG images being used when a JPEG would have been preferable for image load latency and user data costs. The changes we’re making will provide consistent behavior that can be depended on by those uploading images to Twitter to reach a global audience.
All JPG and WebP images will continue to be converted to 85% JPEG File Interchange Format (JFIF) quality. PNG images will be handled in a much more intricate and complex manner:
The most common PNGs are PNG-24 and PNG-32. PNG-24 has RGB Color with 8 bit depth color, that is to say it uses 8 bits per channel with 3 color channels (RGB) for a total of 24 bits per pixel. PNG-32 has RGB Color w/ Alpha with 8 bit depth color, that is to say it uses 8 bits per channel with 3 color channels (RGB) plus an alpha channel for a total of 32 bits per pixel. Both PNG-24 and PNG-32 will be tested to consider if they will remain PNG or if they will be converted to JPEG, which is more likely.
A not so uncommon PNG format is PNG-8. PNG-8 is a Palette Based image with 8 bit depth color, that is to say it uses a palette to look up all of its colors and can support full RGB and Alpha color but has a maximum of 8 bits worth of colors, a.k.a. 256 colors in the palette. PNG-8 images will always stay as PNG-8 and won’t be converted.
Any images uploaded to Twitter that have transparency in them will have a white background applied instead of those transparent pixels starting February 11th. Feedback is being collected from developers in a thread of Twitter's developer forums.