Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/linusu/rasterizexcassets
- Owner: LinusU
- Created: 2018-03-23T10:39:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-18T11:21:23.000Z (over 2 years ago)
- Last Synced: 2024-10-19T23:41:43.894Z (24 days ago)
- Language: Swift
- Size: 12.7 KB
- Stars: 22
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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