Skip to content

LinusU/RasterizeXCAssets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RasterizeXCAssets

Rasterize svg files into your XCAssets.

Installation

Installation via Mint:

mint install LinusU/RasterizeXCAssets

Usage

converting logo.svg to an appiconset xcasset:

rasterizexcassets logo.svg Sources/Assets.xcassets/AppIcon.appiconset

The command will load the svg file logo.svg, and then rasterize it to all sizes that should be present for an appiconset. It will also create the neccesary Contents.json file, and create Assets.xcassets if it doesn't exist.

converting greeting.svg to an imageset xcasset:

rasterizexcassets greeting.svg Sources/Assets.xcassets/Greeting.imageset --size 120x200

The command will load the svg file logo.svg, and then rasterize it to the size specified at 1x, 2x and 3x. It will also create the neccesary Contents.json file, and create Assets.xcassets if it doesn't exist.

Related tools

About

Rasterize svg files into your XCAssets

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages