Type object
File match *.sprite
Schema URL https://catalog.lintel.tools/schemas/schemastore/sprite-files/latest.json
Source https://www.schemastore.org/sprite.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Schema for image sprite generation files

Properties

images Record<string, string> required

An array of file paths relative to this document. The name must be unique.

customstyles Record<string, string | number>

Define custom CSS declarations to inject into the generated stylesheet.

dpi integer

The image resolution of the generated image sprite

Default: 96
optimize enum

Optimizes the generated image either lossy or lossless. Requires the "Image Optimizer" extension for Visual Studio

Default: "lossless"
Values: "lossless" "lossy" "none"
orientation enum

The orientation of the individual images inside the generated sprite.

Default: "vertical"
Values: "horizontal" "vertical"
output enum

Output format of the generated image sprite.

Default: "png"
Values: "png" "jpg" "gif"
padding integer

The padding around each individual image in the sprite. The value is in pixels.

Default: 10
pathprefix string

Add any path root in front of the generated. Example: "/images/"

Default: ""
stylesheet enum

Define stylesheets (css, less, sass) to be generated as part of the sprite generation process.

Default: "none"
Values: "none" "css" "less" "scss" "styl"