5 ms·
Mind = blown. Hello world on Chrome, Hello Apple on Safari.
by noway421 5y ago
Mind = blown. Hello world on Chrome, Hello Apple on Safari.
- dunham 5y agoIf you save it to desktop, the icon says hello world and quicklook says hello apple.
- moron4hire 5y agoNow that is a WTF
- noduerme 5y agoI noticed that too. Even weirder, this is the case when saving from Firefox (which displays HELLO WORLD) and when saving from Safari.
- Sniffnoy 5y agoI mean, of course it is, it's just saving the PNG; it's not going to decode it and then re-encode it or something!
- noduerme 5y agoSince the desktop icon is scaled down, it has to be parsed at some point and saved back out at icon size. The fact that it says HELLO WORLD on the icon even if you're saving it from Safari means that whatever code is shrinking it into a little icon is parsing it differently from what's being used to display it at full size.
- astrange 5y agoThat’s not surprising, some image formats come with separate thumbnail images to make them faster to decode.
- noduerme 5y agoAFAIK, PNG format can't contain portable little icons. It wouldn't make sense, either, since it would need lots of different sizes of those for different platforms and devices. Mac OS is what creates the icons for individual files on a Mac desktop. Type something into a text file and save it... the document's icon will actually show a tiny miniature of the text you typed, not just some generic text-document icon. The PNG miniature is generated by the OS, and says HELLO WORLD, even though the same OS parses it as HELLO APPLE when you open it with quicklook or preview.
- oefrha 5y agoBoth are generated by /System/Library/QuickLook/Image.qlgenerator, one as thumbnail and one as preview. You can check yourself: # thumbnail qlmanage -c public.image -g /System/Library/QuickLook/Image.qlgenerator -t /path/to/a.png # preview qlmanage -c public.image -g /System/Library/QuickLook/Image.qlgenerator -p /path/to/a.png
- Retr0id 5y agoI suppose it's not too surprising that thumbnailing is single-threaded, since its usually done in the background (where wall-time doesn't really matter) and/or in large batches (where file-level parallelism doesn't really help you).
- ByThyGrace 5y agoAnyone on Safari please post a screenshot for the rest of us.
- edelans 5y agohere : https://cln.sh/hKwQlf https://cln.sh/hKwQlf