Hello World vs. Hello Apple: What Do You See When You Look at This Image?

This is the blue/white dress of the tech world, and our minds are blown.

We may earn a commission from links on this page.
Apple puzzle
Screenshot examples of how all four variations look to different users.
Image: David Buchanan

We all remember the “What color is this dress?” phenomenon followed by “Yanny vs. Laurel.” Now the world has a new puzzle to obsess over, and it will pit Apple users against their longtime rivals.

Here’s how it works: look at this image on a PC or Android phone (or any other non-Apple product). Then, view the same image on an Apple device. If you were already using a Mac, iPhone, or iPad, then switch over to a different platform.

Advertisement

Let’s try that again with a different image.

Pretty neat, huh? When viewing the first image on a PC or Android phone, you should have seen the message “HELLO WORLD.” On an Apple device that same image file reads “HELLO APPLE.” (There is a caveat that we’ll address in further detail below.)

Advertisement
Hello Apple Hello World
Image: David Buchanan

The second image is even trippier. On a non-Apple device, the image shows an old IBM PC, but switch to an i-device and you’ll see an old Mac.

Advertisement
IBM and Apple
Image: David Buchanan

OK, so what the hell is going on here? Let engineer and cryptographer David Buchanan—the mastermind behind this puzzle—do the explaining:

Advertisement

“I found this while writing my own multi-threaded PNG decoder. While pondering my design, I realised that I had an exploitable implementation bug,” Buchanan wrote in a blog post. “After learning that Apple has their own implementation of parallel-decodable PNGs, I realised that they’d made exactly the same mistake!”

In simplified terms, there are different ways to decode an image. You could do it in a single thread or you could do it in parallel threads broken into blocks (a method used to make programs run faster), as Buchanan attempted. He discovered a bug in his own project, then found that Apple had made the same mistake. He determined that it was possible to render a PNG file where: decompress(a + b) != decompress(a) + decompress(b) (where != means not equal to). That is, that two parts decoded separately then put together didn’t always create the same results as those same two parts decoded together.

Advertisement

“This could happen if a ends midway through a non-compressed block. It is, therefore, possible for an image to have two possible interpretations, depending on whether a parallel or non-parallel decoder decodes it,” Buchanan continued.

For you skeptics out there, when I showed these images to my brother, a research scientist at The University of Virginia, he hashed the files (converted them into numbers) and confirmed that they are indeed the same, proving that Buchanan isn’t cutting corners by serving you different files based on the browser or OS you’re using.

Advertisement

If you’re having trouble replicating this puzzle, it may have to do with your browser because the trick relies on Apple software, not hardware. After viewing the image on multiple devices and browsers, we learned that Apple products running Safari will always show HELLO APPLE while non-Apple devices using other browsers show HELLO WORLD.

But things do get confusing once you start mixing and matching.

When using non-Safari browsers on Apple’s mobile devices (iPad, iPhone), the HELLO APPLE message appeared. Strangely, using those same browsers—Chrome, Opera, Edge, for example—on a Mac showed the HELLO WORLD message. While we can’t be certain, this suggests browser apps written for the App Store are using Apple’s PNG rendering image library whereas browsers downloaded as programs on macOS use their own PNG parser.

Advertisement

Whatever the case, if you want to get in on the fun, Buchanan posted a tool called ‘Ambiguous PNG Packer’ that lets anyone create images that look different when run through Apple software. We should caution, however, that these deviations in parsing image files could be a security concern, and something Buchanan believes “needs to be approached with care.”

Update at 1:30p ET: We originally published this article with embedded photos. Unfortunately, our CMS changed the files enough to break the illusion. We’ve updated the article with links that will take you to photos that should look different on Apple vs. other platforms.

Advertisement

via BleepingComputer

Advertisement