Skip to main content

add

Function add 

Source
pub fn add(
    project: &str,
    name: &str,
    extension: &str,
    content: &[u8],
) -> Result<ImageSummary>
Expand description

Add an image to a project. The extension is jpg, jpeg, png, webp, or svg, and must match the image.

Needs image.add or content:write in the manifest’s [permissions].