Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/linusu/rasterizexcassets

Rasterize svg files into your XCAssets
https://github.com/linusu/rasterizexcassets

Last synced: 21 days ago
JSON representation

Rasterize svg files into your XCAssets

Awesome Lists containing this project

README

        

# RasterizeXCAssets

Rasterize svg files into your XCAssets.

## Installation

Installation via [Mint](https://github.com/yonaskolb/Mint):

```sh
mint install LinusU/RasterizeXCAssets
```

## Usage

**converting `logo.svg` to an appiconset xcasset:**

```sh
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:**

```sh
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

- [jkmathew/Assetizer](https://github.com/jkmathew/Assetizer) - Creates Assets from raster images
- **LinusU/RasterizeXCAssets** - Create AppIcons & Assets from SVGs
- [num42/icon-resizer-swift](https://github.com/num42/icon-resizer-swift) - Create AppIcons from raster images