Here's how Twitter uses artificial intelligence to crop your photos

Say goodbye to bad thumbnails.
 By 
Monica Chin
 on 
Original image replaced with Mashable logo
Original image has been replaced. Credit: Mashable

The artificial intelligence that crops your Twitter photos is getting a lot smarter.

In a new blog post, Twitter machine learning researchers Zehan Wang and Lucas Theis describe the company's new approach to cropping your photos into preview thumbnails.

Twitter has been working on this tool for a while, but the post is the first detailed description of researchers' methods and process. The feature is currently rolling out to all Twitter users, and aims to put an end to awkwardly cropped thumbnails.

Previously, when deciding which part of your images to display as the preview image, Twitter looked for the most prominent face. For pictures containing no faces, Twitter displayed the center of the image. If you've ever seen an awkward thumbnail of a cat's neck or a white wall, that process was responsible.

Going forward, Twitter will crop using "saliency." Saliency refers to the interestingness of a region of an image -- how likely a viewer is to focus on it. The researchers cite studies showing that people tend to pay most attention to faces, text, animals, and regions of high color contrast.

Original image replaced with Mashable logo
Original image has been replaced. Credit: Mashable

The researchers have trained Twitter's neural networks to find the most interesting parts of your photos in a very short amount of time, so you won't notice delays while posting your photos.

Software engineers used a technique called "knowledge distillation" to train their algorithms to quickly approximate the most salient parts of your photos. While it might take a long time to make fine-tuned pixel-level predictions, Twitter's neural networks do a speedy, more approximate version to get your photos up on time.

Engineers also used a technique called "pruning" to make sure the algorithm skips over features of your images that will take a while to investigate without yielding much benefit.

It's a small update, but one that could dramatically improve your Twitter feed. You'll see fewer weird, random thumbnails, and maybe even save time clicking.

Mashable Image
Monica Chin

Monica wrote for Mashable's Tech section with a focus on retail, internet of things, and the intersections of technology and social justice. She holds a degree in creative writing from Brown University, and has previously written for Dow Jones Media, the New York Post, Yahoo Finance, and others. In her free time, she can be found attempting to cook Asian food, buying board games, and looking for new hobbies.

Mashable Potato

Recommended For You
'The AI Doc' producer Daniel Kwan on the future and threat of artificial intelligence
Daniel Kwan, Charlie Tyrell, and Ted Tremper talking to Mashable about 'The AI Doc: Or How I Became an Apocaloptimist'

NVIDIA CEO Jensen Huang says AGI is here — sort of
Jensen Huang, chief executive officer of Nvidia Corp., during a news conference at the Nvidia GTC conference

Review: 'The AI Doc: Or How I Became an Apocaloptimist' is a panic attack, in a good way
Sketchbook with "What is AI?" written in it.


Victim of Jeffrey Epstein files class-action lawsuit against Google
By Jack Dawes
Laws regarding cyber crimes - stock photo

Trending on Mashable
NYT Connections hints today: Clues, answers for April 3, 2026
Connections game on a smartphone

Wordle today: Answer, hints for April 3, 2026
Wordle game on a smartphone

Google launches Gemma 4, a new open-source model: How to try it
Google Gemma

NYT Strands hints, answers for April 3, 2026
A game being played on a smartphone.

What's new to streaming this week? (April 3, 2026)
A composite of images from film and TV streaming this week.
The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!