Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 964 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 964 Bytes

Spritezero instructions

Installation

Requirements:

  • node v16
  • yarn package manager
yarn install

How to add new icons

  1. Download new icons as svg to your machine. Rename them logically.
  2. (Optional step) Resize the icons to match the current ones. You can use rsvg-convert to do it.
# Installation
sudo apt install librsvg2-bin

# Resize to the size 16x16 (or somewhat similar, depending of the aspect ratio of the icon)
rsvg-convert -w 16 -h 16 -f svg icon.svg > resized-icon.svg

# The batch process example
for i in $(find new-icons/*.svg -printf "%f\n"); do rsvg-convert -w 16 -h 16 -f svg new-icons/$i > test-icons/$i; done;
  1. Place the icons in the root of map-icons directory
  2. Run the script:
yarn run icons
  1. Check that new icons are in sprite.png

Now the icons should be available through the sprite.

  1. Upload the newest sprite into Karttatuotanto Azure blob storage, overwriting the older sprite files.