Skip to content

Latest commit

 

History

History
380 lines (296 loc) · 24.2 KB

image-recommendations.md

File metadata and controls

380 lines (296 loc) · 24.2 KB

Image recommendations for Windows PWA packages

Your PWA for Windows should have a square, 512x512 or larger PNG image from which PWABuilder will generate the recommended Windows app images.

Optionally, you can supply PNG images of the right sizes in your web manifest, and PWABuilder will use those instead.

Overview

Your PWA can be enhanced on Windows by supplying the images with specific dimensions in your web app manifest. We recommend choosing one of the options below:

Level 1: Basic image support

  • 512x512 - base image from which to generate missing images

This is the easiest developer option, but it's also the most basic and won't stand out from other apps on Windows.

In PWABuilder's Windows platform options, you specify the URL of a square, 512x512 or larger PNG image. This is the base image from which PWABuilder will generate all Windows app images.

Level 2: Tiles

Your web app manifest icons should include images with these dimensions:

At this level, your web app manifest contains tile images for the default (1x) display scale. Each of the images must be in PNG format and purpose any.

Level 3: Tiles with display scales

Your web app manifest icons should include images with these dimensions:

For level 3, your web app manifest should contain tile images for all Windows display scale sizes.

Display scales are user-configurable in Windows:

Additionally, on Windows devices with high DPI and high resolution displays, Windows may enable a certain display scale by default. For example, on many Microsoft Surface laptops, a display scale of 200% or higher is enabled by default.

Having icons for these sizes becomes more important as more devices ship with high density and high resolution displays.

Level 4: Tiles, display scales, and target sizes

Your web app manifest icons should include images with these dimensions:

In level 4, you supply images for tiles with display scales and target size images for display in various surfaces in Windows, including taskbar, start menu, task manager, ALT+Tab task switcher, and more.

This provides the best experience for your users, but also requires the most developer effort.

Image level summary

We recommend you choose one of the levels described above. Keep in mind that if you don't supply one or more of the above image sizes in your web manifest, PWABuilder will generate it for you.

For example, if you don't supply a 284x284 (small tile 4x display scale) image in your web manifest, PWABuilder will create it for you by scaling down the large, square PNG image you supplied in the PWABuilder options dialog.

If PWABuilder generating all the images is acceptable for your app, then you may proceed with Level 1 or Level 2. But if you want control over which icons show up in Windows -- not just using some scaled image variant -- you should choose Level 3 or 4.

Consider, for example, how your app icon might show different content depending on the available surface area:

  • Small surface: App icon (44x44) in taskbar, showing a small, abbreviated logo:

  • Larger surface: Medium tile (150x150) in start menu, showing the full logo of the app:

  • Wide surface: Wide tile in start menu, showing a more articulated app icon:

Notice how the content of the icon changed. This is possible only through the use of higher levels of icon support. Thus, we recommend developers choose higher levels to give the best experience for your Windows users.

Icon descriptions

Below you'll find a description of each app icon and where they show up in Windows.

App icon

Shown in start menu, task bar, task manager.

  • 44x44
  • 55x55 (1.25x scale)
  • 66x66 (1.5x scale)
  • 88x88 (2x scale)
  • 176x176 (4x scale)

Small tile

Shown in the start menu when the user set your app's tile to small size.

  • 71x71
  • 89x89 (1.25x scale)
  • 107x107 (1.5x scale)
  • 142x142 (2x scale)
  • 284x284 (4x scale)

Medium tile

Shown in the start menu when the user sets your app's tile to medium size.

  • 150x150
  • 188x188 (1.25x scale)
  • 225x225 (1.5x scale)
  • 300x300 (2x scale)
  • 600x600 (4x scale)

Wide tile

Shown in the start menu when the user sets your app's tile to wide size.

  • 310x150
  • 388x188 (1.25x scale)
  • 465x225 (1.5x scale)
  • 620x300 (2x scale)
  • 1240x600 (4x scale)

Large tile

Shown in the start menu when the user sets your app's tile to large size.

  • 310x310
  • 388x388 (1.25x scale)
  • 465x465 (1.5x scale)
  • 620x620 (2x scale)
  • 1240x1240 (4x scale)

Store logo

Shown in app installer, Windows Partner Center, the "Report an app" option in the Store, and the "Write a review" option in the Store.

  • 50x50
  • 63x63 (1.25x scale)
  • 75x75 (1.5x scale)
  • 100x100 (2x scale)
  • 200x200 (4x scale)

Splash screen

Shown as the splash screen for your app. Currently supported only in classic package. In the future, we may add support for the modern hosted app package as well.

  • 620x300
  • 775x375 (1.25x scale)
  • 930x450 (1.5x scale)
  • 1240x600 (2x scale)
  • 2480x1200 (4x scale)

Target size images

In addition to the standard scale factor sizes described above, we also recommend creating "target-size" assets. We call these assets target-size because they target specific sizes, such as 16 pixels, rather than specific scale factors, such as 400. Target-size assets are for Windows surfaces that don't use the scaling plateau system.

Shown in start jump list, shortcuts, control panel:

  • 16x16 (recommended)
  • 20x20
  • 24x24 (recommended)
  • 30x30
  • 32x32 (recommended)
  • 36x36
  • 40x40
  • 48x48 (recommended)
  • 60x60
  • 64x64
  • 72x72
  • 80x80
  • 96x96
  • 256x256 (recommended)

Windows Light Mode icons

Windows lets users to change their OS theme to Windows Light Mode. Consider the default Windows theme (dark mode):

Contrasted with Windows Light Mode:

In the above image, notice how the Store app icon is darker when the OS is in Light Mode.

By default, your app will have the same icon for both light and dark modes.

But if you wish to have a different app icon in Windows Light Mode, you can use the new W3C color_scheme proposal on icons with sizes 16x16, 20x20, 24x24, 30x30, 32x32, 36x36, 40x40, 44x44, 48x48, 60x60, 64x64, 72x72, 80x80, 96x96, 256x256:

{
    "src": "/images/icon16x16.png",
    "sizes": "16x16",
    "color_scheme": "light"
},
{
    "src": "/images/icon20x20.png",
    "sizes": "20x20",
    "color_scheme": "light"
},
{
    "src": "/images/icon24x24.png",
    "sizes": "24x24",
    "color_scheme": "light"
},
{
    "src": "/images/icon30x30.png",
    "sizes": "30x30",
    "color_scheme": "light"
},
{
    "src": "/images/icon32x32.png",
    "sizes": "32x32",
    "color_scheme": "light"
},
{
    "src": "/images/icon36x36.png",
    "sizes": "36x36",
    "color_scheme": "light"
},
{
    "src": "/images/icon40x40.png",
    "sizes": "40x40",
    "color_scheme": "light"
},
{
    "src": "/images/icon44x44.png",
    "sizes": "44x44",
    "color_scheme": "light"
},
{
    "src": "/images/icon48x48.png",
    "sizes": "48x48",
    "color_scheme": "light"
},
{
    "src": "/images/icon60x60.png",
    "sizes": "60x60",
    "color_scheme": "light"
},
{
    "src": "/images/icon64x64.png",
    "sizes": "64x64",
    "color_scheme": "light"
},
{
    "src": "/images/icon72x72.png",
    "sizes": "72x72",
    "color_scheme": "light"
},
{
    "src": "/images/icon80x80.png",
    "sizes": "80x80",
    "color_scheme": "light"
},
{
    "src": "/images/icon96x96.png",
    "sizes": "96x96",
    "color_scheme": "light"
},
{
    "src": "/images/icon256x256.png",
    "sizes": "256x256",
    "color_scheme": "light"
}

If you supply those images in your manifest, your app will use them when Windows is in Light Mode. If you don't provide those images, your app will have the same icon across both Windows Light and Dark modes.

Unsupported Windows image types

High contrast icons and accent color icons are currently unsupported in the PWABuilder Windows platform.

Please open an issue if support is important to you.

Unplated icons

PWABuilder assumes your icon works as an unplated icon, building your app with support for showing your icon as unplated in Windows. PWABuilder currently doesn't support changing this behavior.

If support for showing only plated icons in Windows is important for your app, please open an issue.

Summary

PWABuilder requires you to have a large, square, PNG image from which it will generate all 80 recommended Windows app images for you.

Optionally, you can supply one or more Windows images yourself by adding an image of the right dimensions to your web manifest.

Questions or comments? Feel free to open an issue on Github, we'd be glad to help.