Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add conversion script to save the logo as PNG images
Roland Geiderc5dc7b2ef59e
diff --git a/wger/manager/static/images/logo.svg b/wger/manager/static/images/logo.svgindex 06c974983..663023f8b 100644--- a/wger/manager/static/images/logo.svg+++ b/wger/manager/static/images/logo.svg@@ -867,13 +867,13 @@x2="1132.6685"y1="-7.0053744"x1="1069.632"- gradientTransform="translate(534.28448,317.10042)"+ gradientTransform="translate(-85.630897,361.96272)"gradientUnits="userSpaceOnUse"id="linearGradient7237"xlink:href="#linearGradient7148-0"inkscape:collect="always" /><linearGradient- gradientTransform="translate(91.779093,-1028.7684)"+ gradientTransform="translate(-528.13628,-983.9061)"y2="1069.6898"x2="1575.1738"y1="1338.8635"@@ -893,7 +893,7 @@inkscape:pageshadow="2"inkscape:zoom="0.24519476"inkscape:cx="208.63681"- inkscape:cy="360.61418"+ inkscape:cy="-128.7927"inkscape:document-units="px"inkscape:current-layer="layer1"showgrid="false"@@ -1133,7 +1133,7 @@transform="matrix(1.0243129,0,0,1.0243129,1918.9992,993.99622)" /><pathstyle="fill:url(#linearGradient7237);fill-opacity:1;stroke:url(#linearGradient7239)"- d="m 1725.1832,-40.599871 c -164.9645,0 -298.7187,133.72299 -298.7187,298.687491 0,64.6644 20.5767,124.5453 55.5,173.4375 7.5849,0.5771 15.2361,0.875 22.9688,0.875 164.9645,0 298.6876,-133.723 298.6876,-298.6875 0,-64.672601 -20.5373,-124.5417612 -55.4688,-173.437491 -7.585,-0.5771 -15.2361,-0.875 -22.9689,-0.875 z"+ d="m 1105.2678,4.262426 c -164.96448,0 -298.71868,133.722994 -298.71868,298.687494 0,64.6644 20.5767,124.5453 55.5,173.4375 7.5849,0.5771 15.2361,0.875 22.9688,0.875 164.96448,0 298.68758,-133.723 298.68758,-298.6875 0,-64.6726 -20.5373,-124.541764 -55.4688,-173.437494 -7.585,-0.5771 -15.2361,-0.875 -22.9689,-0.875 z"id="path3007-4-7-6"inkscape:connector-curvature="0" /></g>diff --git a/wger/manager/static/images/logos/convert-to-png.sh b/wger/manager/static/images/logos/convert-to-png.shnew file mode 100755index 000000000..8bbe29fdd--- /dev/null+++ b/wger/manager/static/images/logos/convert-to-png.sh@@ -0,0 +1,33 @@+#!/bin/sh++# -*- coding: utf-8 -*-++# This file is part of Workout Manager.+#+# Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License++++#+# Note: you need to have the OpenSans fonts installed where inkscape can find them+#++for resolution in 16 30 32 48 60 64 128 256+do+ inkscape \+ --export-png=logo-${resolution}.png \+ --export-area-page \+ --export-width ${resolution}\+ --export-height ${resolution}\+ logo.svg+done\ No newline at end of filediff --git a/wger/manager/static/images/logos/logo-16.png b/wger/manager/static/images/logos/logo-16.pngnew file mode 100644index 000000000..62fd50fd7Binary files /dev/null and b/wger/manager/static/images/logos/logo-16.png differdiff --git a/wger/manager/static/images/logos/logo-256.png b/wger/manager/static/images/logos/logo-256.pngnew file mode 100644index 000000000..6abdc8c2bBinary files /dev/null and b/wger/manager/static/images/logos/logo-256.png differdiff --git a/wger/manager/static/images/logos/logo-32.png b/wger/manager/static/images/logos/logo-32.pngnew file mode 100644index 000000000..e5b3f883bBinary files /dev/null and b/wger/manager/static/images/logos/logo-32.png differdiff --git a/wger/manager/static/images/logos/logo-64.png b/wger/manager/static/images/logos/logo-64.pngnew file mode 100644index 000000000..0b6b21385Binary files /dev/null and b/wger/manager/static/images/logos/logo-64.png differdiff --git a/wger/manager/templates/manifest.webapp b/wger/manager/templates/manifest.webappindex b3845fe52..8b04f84fd 100644--- a/wger/manager/templates/manifest.webapp+++ b/wger/manager/templates/manifest.webapp@@ -1,14 +1,18 @@{% load staticfiles %}{- "name": "wger Worktout Manager",+ "name": "wger","version": "{{version}}","description": "A workout, nutrition and weight manager","launch_path": "/","icons": {+ "16": "{% static 'images/logos/logo-16.png' %}",+ "32": "{% static 'images/logos/logo-32.png' %}","30": "{% static 'images/logos/logo-30.png' %}","48": "{% static 'images/logos/logo-48.png' %}","60": "{% static 'images/logos/logo-60.png' %}",- "128": "{% static 'images/logos/logo-128.png' %}"+ "64": "{% static 'images/logos/logo-64.png' %}",+ "128": "{% static 'images/logos/logo-128.png' %}",+ "256": "{% static 'images/logos/logo-256.png' %}"},"developer": {"name": "Roland Geider"