| 1 |
Icons |
| 2 |
======== |
| 3 |
|
| 4 |
Some portal APIs accept Icon image data either as bytes or memfd sealed file descriptors. |
| 5 |
These icons must pass validation by ``xdg-desktop-portal-validate-icon`` in order to be used |
| 6 |
successfully. The requirements to pass validation are: |
| 7 |
|
| 8 |
.. csv-table:: Icon Requirements |
| 9 |
:header: "Icon Property", "Requirement", "Description" |
| 10 |
|
| 11 |
"Shape", "Square", "All icons, whether PNG, JPEG, or SVG, must be square." |
| 12 |
"Edge Length", "512 pixels", "For raster images, the maximum edge length is 512 pixels." |
| 13 |
"SVG File Size", "4096 bytes", "For SVG images, the data describing the SVG must fit within 4096 bytes." |
| 14 |
"Raster File Size", "4 MiB", "For raster images, the total data must fit within 4MB." |