This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.IO.Compression; | |
using System.Xml.Linq; | |
using Windows.Storage; | |
using System.Text.RegularExpressions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sourcepath="./SVG/" | |
destinationpath="./PNG/" | |
filestoprocess=(action_call_circle action_locate_circle action_settings_circle) | |
dimensionbyscale=false | |
dimensionpixel=($"40:" $"80:" $"120:") | |
dimensionscale=($"1x" $"2x" $"3x") | |
scaleprefix=($"" $"@2x" $"@3x") | |
for file in $sourcepath/*.svg; do | |
fullname=$(basename "$file") | |
extension="${fullname##*.}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Provide the path of the source SVG folder e.g project/assets/SVG/ | |
sourcepath="Design/SVG/" | |
#Provide the destination path where you want the exported PNG files | |
destinationpath="Design/PNG/" | |
# Provide the source SVG file names to be converted as PNG | |
filestoprocess=(happy) | |
dimensionbyscale=false | |
dimensionpixel=($"29:29" $"58:58" $"40:40" $"80:80" $"76:76" $"152:152" $"167:167" $"58:58" $"87:87" $"80:80" $"120:120" $"120:120" $"180:180") | |
dimensionscale=($"1x" $"2x" $"3x") | |
iconname=($"iPad-29" $"iPad-29@2x" $"iPad-40" $"iPad-40@2x" $"iPad-76" $"iPad-76@2x" $"iPad-83.5@2x" $"iPhone-29@2x" $"iPhone-29@3x" $"iPhone-40@2x" $"iPhone-40@3x" $"iPhone-60@2x" $"iPhone-60@3x") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |