8 ms·
Challenge: Pixel perfect design
- cube00 4y agoI noticed the images looked a little blurred to me for pixel art. Digging further into it, they're oversized high resolution JPEG images scaled down by the browser rather then correctly sized PNGs. Putting quality aside and thinking about the poor internet pipes; each image is around 100kb in size and had it been a two bit black and white PNG would have been around 12kb. I know, I know, it's a probably an off the shelf CMS system but still, it's Apple, if anyone can afford to care about the little things like this shouldn't it be them?
- saberience 4y agoThey looked perfect to me, using an Macbook Air M1 and Chrome.
- emkoemko 4y agohow do you not see the grey gradient they adding next to each black pixel? making it seem blurry... unless i am missing something
- vbezhenar 4y agoI can clearly see JPEG artifacts on iPhone.
- zffr 4y agoTake a screenshot and zoom in. If perfectly pixel aligned the edges should be sharp even when zoomed in on a screen shot. In the screenshot you will see slightly blurry edges.
- toxik 4y agoThey look great here. Safari on iOS.
- throw457 4y ago
- emkoemko 4y agohttps://devimages-cdn.apple.com/wwdc-services/articles/images/6DFA3373-0152-4A78-8773-C5117073260A/2048.jpeg https://devimages-cdn.apple.com/wwdc-services/articles/image... your saying there is no anti aliasing ? this looks really blurry, like you said open it up check with a color picker and you will see the gradients....
- throw457 4y ago
- pdpi 4y agoThere's something odd going on with that picture, though, because it has faint grid lines for the pixels. It's hard to tell what's anti-aliasing blurring, and what's a grid line.
- prashnts 4y agoI see gridlines on my iPhone, but only if I zoom in a lot. I'm guessing this is a case of "designed and exported on Retina display, for Retina display". Because yeah, in true 1-bit image there won't be a grey gridline.
- 0xCAP 4y agoIf only Safari shipped AVIF support...
- jansan 4y agoYes, using a lossy image format for pixel art or images with a small number of colors in general has always been a a bad idea. Many people do not see the artefacts, but they are there, and the fact that the file size is even bigger with lower quality does not make it better. BTW, the images also contain a grid, so you would need at least three colors, which requires 2 bit per pixel before compression.
- arendtio 4y agoDidn't notice it until I read your comment... Revenge: https://xkcd.com/1015/ https://xkcd.com/1015/ Btw. what display/resolution are you using?
- greggman3 4y agoThere is actually no perfect solution For one, browser's can't agree on what CSS solution to pick. Chrome and Safari have `image-rendering: pixelated` whereas Firefox has `image-rendering: crisp-edges`. The spec used to say pixelated meant "keep it looking pixelated" and that "crisp-edges" meant to keep the edges crisp and so allowed various algorithms. The spec was changed in early 2021 so that crisp-edges means "nearest-neighbor" and "pixelated" still means "keep it looking like pixels" which implies nearest-neighbor + extra. It gets worse though. What is the web developer's intent? Example: I put <img src="128x128.png" style="width: 256px; height: 256px; image-rendering: pixelated"> Seems straight forward right? I want my 128x128 pixel image displayed double size (256x256) where each original pixel is 2x2 pixels on the user's machine. But, that's not how browsers work. My Windows Desktop has a devicePixelRatio of 1.25 so asking for a 256px by 256px CSS pixel image gives 317x317 device pixels. That means this 128x128 pixel image, scaled to 317x317 with nearest neighbor filtering is going to look really really bad as some pixels get 2x2 and others get 1x1 scaling. This is why `pixelated` = "nearest neighbor" may not actually be what the web designer wants. Where as, if you manually scale the 128x128 image to say 512x512 using nearest neighbor and then let the browser scale it to 256x256 * devicePixelRatio using the default bilinear filtering it will likely look better. Note: You can get these non-integer devicePixelRatio values on Chrome or Firefox just by zooming in the browsers (Cmd/Ctrl +/-). On Windows you can also go into the display settings and choose an OS level devicePixelRatio so that OS handled UI widgets and well written apps will adjust how they draw. See example: https://jsgist.org/?src=c65dfc4e2ed2e547a2d5aad69360be6d https://jsgist.org/?src=c65dfc4e2ed2e547a2d5aad69360be6d Zoom in and out and, at least on my machines the right (pre-scaled externally and then scaled down) looks better than the left (original resolution with image-renedering: pixelated
- kixiQu 4y agoI'm not sure why you're saying there's "no true" definition: there is a spec difference between pixelated and crisp-edges: https://stackoverflow.com/a/25278886 https://stackoverflow.com/a/25278886
- greggman3 4y agoI'm saying it because I've actually read the spec. The spec https://drafts.csswg.org/css-images/#the-image-rendering https://drafts.csswg.org/css-images/#the-image-rendering says > pixelated: > The image is scaled in a way that preserves the pixelated nature of the original as much as possible, but allows minor smoothing instead of awkward distortion when necessary. The spec does not say "use nearest neighbor". In fact in specifically allows not using nearest neighbor (end of first sentence). And further, it doesn't specify the algorithm used. So there is no true definition of what you'll get. There is only a general definition of the intent.
- joshspankit 4y agoThis is a nonsense suggestion, but what if they used SVG to build and populate the pixel grids?
- hulitu 4y ago> Digging further into it, they're oversized high resolution JPEG images scaled down by the browser rather then correctly sized PNGs Pixel perfect meets JPG. What can go wrong ? /s There is a unhealty love between JPG and the world of photography. I have an 8 Mpx phone but it chooses to use JPG with medium compression. Good bye quality. My camera also uses JPG but fortunately the compression ratio is not so big.
- flowerbeater 4y agoPixel art is a fun retro hobby, but as the article acknowledges, "we create work for high-resolution HDR screens." Icons, logos, and illustrations in general should be vector-first, so they will show up cleanly on HiDPI and in the future, 4X or 8X DPI interfaces. Too many icons and logos (even the Y on the top left here in HN) look blurry on a simple 4K monitor with 200% scaling (which is not uncommon now).
- toxik 4y agoTrue, and pixel art was originally designed for cathode ray tubes. This leads to a funny effect where modern pixel art designers perhaps misunderstand the intended look of actual oldskool pixel art and emulate it anyway. The same is true of old fonts.
- p1necone 4y agoThis is true for retro video game consoles and early computers that had ~240p displays or output to TVs. But later PC CRTs were pretty crisp and not really that much different from an LCD at native res.
- qubidt 4y agoModern pixel artists far from "misunderstand" the legacy of pixel art. They're specifically designing for a sensibility and context that didn't exist when pixel art was originally made. Actually talk to pixel artists and they'll explain this to you themselves perfectly fine
- navanchauhan 4y agoSubmissions on Twitter: https://twitter.com/search?q=%23WWDC22Challenges https://twitter.com/search?q=%23WWDC22Challenges
- lelandfe 4y agoNice round up: https://twitter.com/lindadong/status/1534573814079598594 https://twitter.com/lindadong/status/1534573814079598594
- hnlmorg 4y agoI can’t help feeling that a large number of those submissions are really missing the point of economising on the canvas. Almost all of them seem to have large swathes of empty space around the icon rather than enlarging the logo to use the entire canvas space. This leads to icons that are completely unrecognisable at the smaller scales. Plus the smaller icons are almost all just clones of their larger counterparts (as if they just resized the image in photoshop — though obviously that’s not what they literally did) rather than simplifying the detail. That all said, there are still some genuinely impressive efforts there. Yeah me thing that definitely stood out was how a lot of the more iconic logos are already pretty simple (often even monochromatic). Though I do also believe there was a fair amount of selection bias going on too (people picking easy icons to redesign).
- im_down_w_otp 4y agoThis is an interesting challenge. I fire up my Macintosh SE/30 regularly to journal and organize my thoughts using Microsoft Word 5.1 Every time I do it I'm impressed again and again what was possible with a 512x342 black & white screen and a 16 MHz 68030 attached to 8 MB of RAM (which is "overkill" for my use). It's incredible the collective and integrated creativity that was motivated by the constraints of the medium. Seeing Apple propose this challenge makes me wonder if there's some kind of low-power, low-res product they're wanting to release where these kinds of design constraints are relevant again.
- klodolph 4y agoStill hoping that some day, Google Docs will catch up with Microsoft Word 5.1.
- dmitriid 4y agoIt's funny they post this challenge on Apple Developer when their own icons in MacOS are not pixel perfect.
- drno123 4y agoIs Apple preparing a new product that will have low-res black&white display?
- solarist 4y agoApple glass maybe?
- Brometheus 4y agoIndeed…
- solardev 4y agoI hope it's an Apple Microwave
- Macha 4y agoMaybe the next iPhone gets an always on display
- vbezhenar 4y agoMy bet is keyboard with programmatic top key row (like Touch Bar)
- mas-ev 4y agoI can't help but think this is linked to an Apple eink display prototype.
- solardev 4y agoWould be cool to see an eink keyboard too, where each key can show something different, like: https://www.artlebedev.com/optimus/popularis/ https://www.artlebedev.com/optimus/popularis/ (but with tactile feedback!! not one giant touch bar, lol)
- stefanv 4y agoJust a thought: what if this some kind of teaser for a new device Apple is preparing? Maybe some e-ink device? Ok, I know we are in 2022, but I would really love to see some “low-tech” device from them. I’ll try to wake up now :)
- richardw 4y agoYeah, my wife just wants a shuffle. No not some other thing that needs you to be connected to Spotify. Just music to run with.
- selykg 4y agoApple Watch kind of plays that part. https://support.apple.com/guide/watch/add-music-apd483798d11/watchos https://support.apple.com/guide/watch/add-music-apd483798d11...
- solardev 4y agoSorry, dumb question, but does it let me listen to downloaded music on my earphones even when I don't have a phone with me? (Never had a proper smartwatch). Like can I download music directly to the Watch (what about DRM?) and can it connect to Airpods or other bluetooth without a phone?
- hutattedonmyarm 4y agoYou can download music directly to the watch, at least with Apple Music. No idea if it works with a local library. However, other apps have the ability too, so chances are good that there are other apps as well. It can connect to Bluetooth headphones just fine without an iPhone, I only carry the watch when I go for a run
- solardev 4y agoCool, thanks! I didn't know they could do that. Looks like it supports Spotify Premium too. Music for exercise would be awesome! (I know, I'm way behind the curve)
- jws 4y agoProblems with pixel perfect layout were what made me give SwiftUI a 12 month “wait for maturity” last year. I hope this and the new SwiftUI custom layout capabilities signal an interest in this at Apple. I was making strip charts of data at fairly high density and wanted my minor grid lines to be one pixel wide. You must make them line up with a physical screen pixel or they turn into a blurry anti aliased mess. As of last year I never found a good way to connect a SwiftUI view to its physical screen pixel positions. I’ve done this for many years in UIKit, and while extra effort, it is at least possible. I think this problem is partially why people used “magic marker” aesthetic on their digital charts rather than “engineering pad”. I guess it’s time for another crack at it.
- solardev 4y agoHow do you do "one pixel wide" when there are so many devices, viewports, LCD/LED types, zoom sizes for accessibility, etc.? It's all virtualized these days, no? A single pixel on something like a watch or 4k 27" display might not even be visible to the average person...
- jws 4y agoWith UIKit you can query the device, it’s subpixel structure, and the alignment of your abstract window on the device and work it out from there. Mostly, it’s possible there is an abstracted display at a non-native resolution over something like an HDMI. But if you are running your display at a non-native resolution then you just don’t care about details and you deserve what you get.
- dmix 4y agoThis is a really good video about how Apple cares about being pixel perfect compared to Windows with something simple and obvious like the mouse cursor icon: https://www.youtube.com/watch?v=YThelfB2fvg https://www.youtube.com/watch?v=YThelfB2fvg The improvements he made are also quite nice, Microsoft should take note...
- chrismorgan 4y agoYou can’t tell me Apple cares about pixel perfection when they implement fractional scaling (which, last time I heard, was I think effectively the only choice on most of their laptops) with rendering at the next integer up and downscaling. Basically Apple have made it so that it’s literally impossible to be pixel perfect, even though they were in the best position by far to force developers to do it properly, in those few where it didn’t Just Work. Microsoft’s approach to fractional scaling is incomparably more sensible, and Wayland is finally heading towards being able to handle it properly (though I find it quite ridiculous that they didn’t just start by doing it properly).
- paldepind2 4y agoHow did Wayland do it initially and how are they doing it now?
- grishka 4y agoActually no. The latest generation of MacBooks increases the screen dpi and the default setting is actual real 2x scaling. Though it doesn't help much because see my reply to the parent comment. It's noticeable on retina too, just not as much.
- grishka 4y agoApple gives no shit about being pixel-perfect lately. Try using modern macOS on a non-retina display and your eyes will bleed because every single icon is drawn as if there's no pixel grid whatsoever. Everything is a blurry mess. Steve Jobs would've definitely fired someone over this, yet with Tim Cook it stays unfixed for more than 2 years — I'd guess because pixel-perfect icons don't affect the bottom line.
- chrismorgan 4y agoWhen it comes to things like favicons, I always design variants for 16×16, 32×32 and larger scalable (or occasionally just 256×256). It perpetually bothers me that no avatar system that I know of supports different images at different sizes; the constraints can be significantly different, as in my own site’s favicon, where at one extreme 16×16 pretty much ignores vertical border to get it as big as possible, and is also effectively super thick and blocky, while at the other extreme the large-size scalable one wants some definite padding, thinner lines, and maybe other details. This is basic design stuff that is intuitive and has been generally practised from the dawn of GUIs. As for black and white, well, I have been thinking that way a little more when contemplating e-ink displays, which handle monochrome better than greyscale (faster, less ghosting). It may surprise those that don’t know to learn that reMarkable renders your writing strictly monochrome with no antialiasing, presumably for both of these reasons; and it works rather well, though I would appreciate a higher resolution than its 226dpi. (The UI is all firmly black-and-white with no greys, but they do use anti-aliased rendering throughout.)
- somishere 4y agoI've spent a bit of time designing a simplistic (but state-dynamic / rendered on the fly) svg favicon for a firefox extension I'm working on. I started designing at 512², with dimensions/elements carefully calculated for downscale, but the resulting antialias on various screens was so unpredictable that I switched to designing a 16² upscale instead which, while initially restrictive, was much more predictable and came out looking quite nice.
- mister_goo 4y agoI always turn off font anti-alias where possible. Some fonts are pixel perfect without AA while others are not. I hate aliased text with passion.
- EGreg 4y ago
- planarhobbit 4y agoSee also: all the commentary around font rendering on MacOS/OS X vs Windows. IMHO Windows has always been far more towards pixel accuracy, but what the hell do I know (the internet will tell me I’m wrong either way!)
- deleted 4y ago[deleted]
- Macha 4y agoWell pixel accuracy is the wrong term for it, as the two options are fitting the pixel grid (aka hinting) and being accurate to the font vectors. Mac OS historically picked the later, Windows the former. It was more of a difference before subpixel rendering and now hi-dpi displays, but Apple have recently dropped their subpixel support (since it's not needed on retina displays) so it's once again an issue using macOS on low PPI displays.
- steve76 4y ago
- 2bitencryption 4y ago> Once you’ve decided, explore a single element that captures the essence of the app, and express that element in a simple, unique shape. For example, the Mail app icon uses an envelope, which is universally associated with mail. And this bullet point is underneath an example of... the "Photos" app icon, I believe? Which basically violates this suggestion, and as a result looks like a total mess in pixel format (even more so than than the real-life hidpi version on my iPhone). Mail => envelope Messages => message bubble Photos => ...colorful peacock tail that suggests more of a "painter's canvas" than it does "photographs" ??
- jammaloo 4y agoThe icon isn't the photos app icon, although the general shape is similar. >Add details cautiously. If the content or shape is overly complex, details can be hard to discern. Icons at all three sizes should generally match in appearance, although you can explore subtle, richer, or more detailed additions at 48×48 pixel size. I believe that example is meant to be an example of a bad icon, as it has a complex shape with lots of different textures.
- 2bitencryption 4y ago> The icon isn't the photos app icon, although the general shape is similar. are you sure? I'm holding up my iPhone side-by-side, an to me there's no doubt this is attempting to represent that. To represent the different colors, the pixel version uses a unique pattern for each "feather". It seems as 1:1 as a 48x48 pixel version could be.
- parentheses 4y agoI feel that this a community feeler to test enthusiasm for technical ingredients of their possible AR future offering.
- ChrisMarshallNY 4y agoI've been designing Apple icons since 1986, and clearly remember using ResEdit to "paint" icons, one pixel at a time. These days, I always use Adobe Illustrator to create my digital assets in vector form, and always start with black-and-white, for logos and icons. That's fairly standard "branding" stuff. The icon needs to be recognizable, even when reduced to 16 X 16 (OK, I'll allow 32 X 32), and in monochrome. I seldom need to move to Photoshop, to apply any raster work. Nowadays, Apple allows vector assets, so I usually include them as vector PDF. It slows down Xcode, but seems to make the apps look a lot better, and they are probably much smaller (App size has never been an issue for me, anyway).
- 0x20cowboy 4y agoAesprite is a great piece of kit for anyone doing the challenge (or doing pixel art in general) https://www.aseprite.org/ https://www.aseprite.org/ - you can get it via the steam store too for the big 3 platforms.
- nurettin 4y agoI don't think apple is the company to talk about pixel perfect. They don't even support native resolutions. It's either tiny, unreadable text, or you have to scale.
- warpech 4y agoIt's interesting that the nostalgia for "pixel-perfect design" comes from a company that seems to have been on a mission to remove pixels from the user's perception for the last 20 years. First, Apple promoted skeuomorphism as the most visible difference from the pixelated look of Windows (OS X, 2001). Secondly, they made pixel-perfect designs irrelevant by making a powerful, small handheld computer. It made the goals of pixel-perfect design futile and triggered the RWD trend instead (iPhone, 2007). Thirdly, they successfully pushed Hi-DPI screens to the masses, which make the smallest elements on the screen too small for the naked eye to be seen. (Retina, 2010). I say it with all due respect. These are absolutely brilliant achievements. Still, some "Yeah, thank us for killing pixels" would be in place.
- jonassalen 4y agoCorrect me if I'm wrong, but Steve Jobs didn't believe in responsive webdesign and the browser on iPhone originally didn't support RWD. He believed people should access the full website and use gestures to zoom in and out on the website. Part of the reason apple.com was so late adapting to mobile breakpoints. So saying that the iPhone was responsible for RWD is too much credit I think.
- warpech 4y agoApple invented the non-standard "viewport" meta tag and gave guidelines on how to use it [1]. The article that has popularized the term RWD mentions iPhone four times [2]. For me it is obvious that RWD started from the iPhone, but maybe our viewpoints (or viewports) differ. [1] https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html#//apple_ref/doc/uid/TP40006509-SW1 https://developer.apple.com/library/archive/documentation/Ap... [2] https://alistapart.com/article/responsive-web-design/ https://alistapart.com/article/responsive-web-design/
- jonassalen 4y agoA great piece of history, that ALA article. I believe you are right, but on a different level. Iphone started the mobile revolution which inspired other phone builders. When earlier we used build m.website.tld websites, the bigger screens from Iphone-inspired smartphones allowed us to use the same website, with mediaqueries. Maybe it's because I'm Europe based, but we didn't really develop for iphones initally.
- WoodenChair 4y agoA way to get started may be to take a color image and dither it to black and white pixels. Shameless plug, I make software for macOS to do this with seven different algorithms[0] (it can in fact even export to MacPaint format). But most sophisticated graphics programs also have this built-in (PhotoShop, GraphicConverter, etc.). 0: https://oaksnow.com/retrodither/ https://oaksnow.com/retrodither/
- d--b 4y agoI can’t help but think that Apple is harvesting people’s work to get a large collection of modern black and white app icons to train a model that creates these automatically.
- 0898 4y agoIt's quite strange (and nice) to see a hint of nostalgia creeping back in to Apple's communications. For a long time, celebrating its history seemed verboten at Apple? There's that story of Jobs getting rid of the Apple Museum that occupied the foyer. Something about not wanting Apple to be a company that was living in its past.