You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_guides/app-resources/images.md
-24Lines changed: 0 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ description: |
18
18
How to add image resources to a project and display them in your app.
19
19
guide_group: app-resources
20
20
order: 4
21
-
platform_choice: true
22
21
---
23
22
24
23
Images can be displayed in a Pebble app by adding them as a project resource.
@@ -57,13 +56,6 @@ are available below. Use these when creating color image resources:
57
56
58
57
## Import the Image
59
58
60
-
{% platform cloudpebble %}
61
-
Add the `.png` file as a resource using the 'Add New' button next to
62
-
'Resources'. Give the resource a suitable 'Identifier' such as 'EXAMPLE_IMAGE'
63
-
and click 'Save'.
64
-
{% endplatform %}
65
-
66
-
{% platform local %}
67
59
After placing the image in the project's `resources` directory, add an entry to
68
60
the `resources` item in `package.json`. Specify the `type` as `bitmap`, choose a
69
61
`name` (to be used in code) and supply the path relative to the project's
@@ -80,7 +72,6 @@ the `resources` item in `package.json`. Specify the `type` as `bitmap`, choose a
80
72
]
81
73
},
82
74
```
83
-
{% endplatform %}
84
75
85
76
86
77
## Specifying an Image Resource
@@ -96,13 +87,6 @@ Resources of this type can be optimized using additional attributes:
96
87
|`storageFormat`| Optional. Determines the file format used for storage. Using `spaceOptimization` instead is preferred. |`pbi` or `png`. |
97
88
|`spaceOptimization`| Optional. Determines whether the output resource is optimized for low runtime memory or low resource space usage. |`storage` or `memory`. |
98
89
99
-
{% platform cloudpebble %}
100
-
These attributes can be selected in CloudPebble from the resource's page:
0 commit comments