SkillAgentSearch skills...

RasterizeXCAssets

Rasterize svg files into your XCAssets

Install / Use

/learn @LinusU/RasterizeXCAssets
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated1y ago
Forks3

Languages

Swift

Security Score

60/100

Audited on Sep 11, 2024

No findings