fix icon size when converting from svg
16
convert.sh
|
@ -66,7 +66,21 @@ function resizeSmallIcon () {
|
|||
function resizeSvg () {
|
||||
inputfile=$1
|
||||
outputfile=$2
|
||||
inkscape -f "$inputfile" -h $size -e "$outputfile"
|
||||
if echo "$outputfile" | grep "flags"
|
||||
then
|
||||
inkscape -f "$inputfile" -h $size -e "$outputfile"
|
||||
else
|
||||
inkscape -f "$inputfile" -h 1024 -e "$outputfile"
|
||||
mogrify \
|
||||
-background none \
|
||||
-trim \
|
||||
-thumbnail ${size}x${size}\> \
|
||||
-unsharp 0x1 \
|
||||
-gravity center \
|
||||
-extent ${size}x${size} \
|
||||
"$outputfile"
|
||||
|
||||
fi
|
||||
optimizeIcon $outputfile
|
||||
}
|
||||
|
||||
|
|
BIN
dist/SEO/google.com.png
vendored
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
dist/brand/Apple.png
vendored
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 615 B |
BIN
dist/brand/BangOlufsen.png
vendored
Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 1.2 KiB |
BIN
dist/brand/Dell.png
vendored
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 976 B |
BIN
dist/brand/Ericsson.png
vendored
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 744 B |
BIN
dist/brand/Google.png
vendored
Before Width: | Height: | Size: 939 B After Width: | Height: | Size: 1.3 KiB |
BIN
dist/brand/HP.png
vendored
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 965 B |
BIN
dist/brand/Huawei.png
vendored
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
dist/brand/Ikea.png
vendored
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 938 B |
BIN
dist/brand/Motorola.png
vendored
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 855 B |
BIN
dist/brand/Nikon.png
vendored
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
dist/brand/OnePlus.png
vendored
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 493 B |
BIN
dist/brand/Philips.png
vendored
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
dist/brand/Samsung.png
vendored
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 890 B |
BIN
dist/brand/Sega.png
vendored
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
dist/brand/Sony.png
vendored
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 797 B |
BIN
dist/brand/T-Mobile.png
vendored
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 607 B |
BIN
dist/brand/Xiaomi.png
vendored
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 468 B |
BIN
dist/devices/camera.png
vendored
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 638 B |
BIN
dist/devices/car_browser.png
vendored
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 581 B |
BIN
dist/devices/console.png
vendored
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 431 B |
BIN
dist/devices/desktop.png
vendored
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 341 B |
BIN
dist/devices/feature_phone.png
vendored
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 579 B |
BIN
dist/devices/phablet.png
vendored
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 291 B |
BIN
dist/devices/portable_media_player.png
vendored
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 410 B |
BIN
dist/devices/smart_display.png
vendored
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 341 B |
BIN
dist/devices/smartphone.png
vendored
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 263 B |
BIN
dist/devices/tablet.png
vendored
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 291 B |
BIN
dist/devices/tv.png
vendored
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 512 B |