resize image sizes; add check for images that are too small

This commit is contained in:
Pieter Vander Vennet 2022-05-14 20:11:59 +02:00
parent afbb572340
commit 6e7de538a7
7 changed files with 102 additions and 119 deletions

View file

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 150 150"
viewBox="0 0 500 500"
version="1.1"
id="svg14"
sodipodi:docname="logo.svg"
width="150"
height="150"
inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)"
width="500"
height="500"
inkscape:version="1.1.2 (1:1.1+202202050950+0a00cf5339)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
@ -20,10 +20,11 @@
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="4.78212"
inkscape:cx="65.661254"
inkscape:cy="75.280419"
inkscape:current-layer="svg14" />
inkscape:zoom="1.3790889"
inkscape:cx="247.98981"
inkscape:cy="213.18422"
inkscape:current-layer="svg14"
width="500px" />
<defs
id="defs4">
<style
@ -32,7 +33,7 @@
<g
id="Laag_1"
data-name="Laag 1"
transform="scale(1.0573395)">
transform="scale(3.5268996)">
<circle
class="cls-1"
cx="70.870003"
@ -43,7 +44,7 @@
<g
id="Laag_2"
data-name="Laag 2"
transform="scale(1.0573395)">
transform="scale(3.5268996)">
<path
class="cls-2"
d="m 102.39,75 a 18.18,18.18 0 0 0 -3.92,0.43 L 92.87,57 A 7,7 0 0 0 86.1,52 h -5.43 v 2.59 h 5.43 a 4.45,4.45 0 0 1 4.29,3.19 l 1.72,5.66 H 55.54 l -2,-4.89 h 3.72 c 0,0 4.74,-0.78 4.74,-4.41 H 46.39 v 4.33 h 4.35 l 2.55,6.25 -5.62,11.55 a 18.31,18.31 0 1 0 11.33,20 h 8 L 68,95.84 93.33,67.37 96,76.15 a 18.28,18.28 0 1 0 6.4,-1.17 z M 41,109 A 15.72,15.72 0 1 1 46.58,78.6 L 38.89,94.4 40,96.27 H 56.38 A 15.74,15.74 0 0 1 41,109 Z M 56.7,93.67 H 42.07 l 6.8,-14 a 15.71,15.71 0 0 1 7.8,13.56 c 0,0.19 -0.01,0.32 -0.02,0.45 z M 50,77.39 l 4.61,-9.45 10.5,25.74 h -5.87 c 0,-0.13 0,-0.26 0,-0.39 A 18.33,18.33 0 0 0 50,77.39 Z M 67.45,92.56 56.59,66 H 91.13 Z M 102.39,109 A 15.71,15.71 0 0 1 96.74,78.62 l 4.56,15 2.48,-0.76 -4.56,-15 a 15.72,15.72 0 1 1 3.17,31.14 z"

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

@ -1,21 +1,13 @@
{
"id": "mapcomplete-changes",
"title": {
"en": "Changes made with MapComplete",
"de": "Änderungen mit MapComplete",
"es": "Cambios hechos con MapComplete",
"nb_NO": "Endringer utført med MapComplete"
"en": "Changes made with MapComplete"
},
"shortDescription": {
"en": "Shows changes made by MapComplete",
"de": "Zeigt Änderungen von MapComplete",
"es": "Muestra los cambios hechos por MapComplete",
"nb_NO": "Vis endringer utført med MapComplete"
"en": "Shows changes made by MapComplete"
},
"description": {
"en": "This maps shows all the changes made with MapComplete",
"de": "Diese Karte zeigt alle Änderungen die mit MapComplete gemacht wurden",
"es": "Este mapa muestra todos los cambios hechos con MapComplete"
"en": "This maps shows all the changes made with MapComplete"
},
"maintainer": "",
"icon": "./assets/svg/logo.svg",
@ -30,10 +22,7 @@
{
"id": "mapcomplete-changes",
"name": {
"en": "Changeset centers",
"de": "Schwerpunkte von Änderungssätzen",
"es": "Centros de conjuntos de cambios",
"nb_NO": "Endringssettsenter"
"en": "Changeset centers"
},
"minzoom": 0,
"source": {
@ -47,47 +36,35 @@
],
"title": {
"render": {
"en": "Changeset for {theme}",
"de": "Änderungen für {theme}",
"es": "Conjunto de cambios para {theme}",
"nb_NO": "Endringssett for {theme}"
"en": "Changeset for {theme}"
}
},
"description": {
"en": "Shows all MapComplete changes",
"de": "Zeigt alle MapComplete Änderungen",
"es": "Muestra todos los cambios de MapComplete"
"en": "Shows all MapComplete changes"
},
"tagRenderings": [
{
"id": "render_id",
"render": {
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"de": "Änderung <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"es": "Conjunto de cambios <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"nb_NO": "Endringssett <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
}
},
{
"id": "contributor",
"render": {
"en": "Change made by <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>",
"de": "Änderung wurde von <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a> gemacht",
"es": "Cambio hecho por <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>"
"en": "Change made by <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>"
}
},
{
"id": "theme",
"render": {
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"de": "Änderung mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
},
"mappings": [
{
"if": "theme~http.*",
"then": {
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>",
"de": "Änderung mit <b>inoffiziellem</b> Thema <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
}
}
]
@ -355,9 +332,7 @@
}
],
"question": {
"en": "Themename contains {search}",
"de": "Themenname enthält {search}",
"nb_NO": "Temanavn inneholder {search}"
"en": "Themename contains {search}"
}
}
]
@ -373,9 +348,7 @@
}
],
"question": {
"en": "Made by contributor {search}",
"de": "Erstellt von {search}",
"es": "Hecho por contributor/a {search}"
"en": "Made by contributor {search}"
}
}
]
@ -391,9 +364,7 @@
}
],
"question": {
"en": "<b>Not</b> made by contributor {search}",
"de": "<b>Nicht</b> erstellt von {search}",
"es": "<b>No</b> hecho por contributor/a {search}"
"en": "<b>Not</b> made by contributor {search}"
}
}
]
@ -408,9 +379,7 @@
{
"id": "link_to_more",
"render": {
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"de": "Weitere Statistiken finden Sie <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>",
"es": "Se pueden encontrar más estadísticas <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>aquí</a>"
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>"
}
},
{

View file

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="374"
height="374"
viewBox="0 0 374 374"
width="500"
height="500"
viewBox="0 0 500 500"
version="1.1"
id="svg7"
sodipodi:docname="logo.svg"
inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)"
inkscape:version="1.1.2 (1:1.1+202202050950+0a00cf5339)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
@ -25,24 +25,24 @@
showguides="true"
inkscape:guide-bbox="true"
inkscape:snap-global="false"
inkscape:zoom="2.4702564"
inkscape:cx="245.31867"
inkscape:cy="234.38863"
inkscape:zoom="0.55712596"
inkscape:cx="-319.49687"
inkscape:cy="166.92814"
inkscape:current-layer="svg7"
width="374px">
width="500px">
<sodipodi:guide
position="187.00008,631.15853"
position="250.02637,970.73555"
orientation="1,0"
id="guide2177" />
</sodipodi:namedview>
<path
id="path2"
style="fill:#00c82e;fill-opacity:1;fill-rule:nonzero;stroke:#40ff00;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 185.73458,1.1914152 C 124.77158,1.4071208 70.262411,43.125501 57.455283,103.58594 c -2.340449,11.04595 -3.133802,22.05225 -2.550782,32.81446 -2.144427,68.71368 52.088519,132.11868 102.355469,198.77539 12.32031,15.26562 30.35156,34.07422 30.35156,34.07422 l 27.64453,-32.61328 C 278.16426,254.62477 370.02183,134.95633 288.22286,48.294931 269.59799,26.068848 243.25657,9.7713097 212.1545,3.7070402 203.28487,1.977548 194.44358,1.1606001 185.73458,1.1914152 Z"
style="fill:#00c82e;fill-opacity:1;fill-rule:nonzero;stroke:#40ff00;stroke-width:6.6964;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 247.20718,2.6632604 C 165.56064,2.9521506 92.557589,58.824749 75.405256,139.79821 c -3.134517,14.79363 -4.197039,29.53415 -3.416211,43.94776 -2.871989,92.02687 69.761125,176.94392 137.082655,266.21593 16.50034,20.44494 40.64924,45.63493 40.64924,45.63493 l 37.02377,-43.67832 C 370.99641,342.08152 494.01943,181.81196 384.46769,65.748064 359.52378,35.981112 324.24524,14.154143 282.59085,6.032387 270.71193,3.7161125 258.87097,2.6219904 247.20718,2.6632604 Z"
sodipodi:nodetypes="scccccccs" />
<path
style="color:#000000;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3.52437;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 266.53557,80.67223 c -6.31364,-1.014444 -12.65279,1.657101 -16.62944,7.00824 l -82.37179,110.8593 -47.96242,-46.99207 c -7.53259,-9.1813 -20.4662,-9.07329 -27.311562,-1.91781 -7.087039,7.56459 -8.507731,17.24412 -0.648456,25.76692 l 61.942428,65.80658 c 7.15464,9.62634 20.80539,9.62634 27.96003,0 l 96.3518,-129.67383 c 6.14683,-8.27231 4.87072,-20.31718 -2.85026,-26.902905 -2.45389,-2.092661 -5.37864,-3.456485 -8.48033,-3.954425 z"
style="color:#000000;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:4.72012;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 355.42234,109.11034 c -8.45573,-1.35863 -16.94563,2.21932 -22.27148,9.38599 l -110.3189,148.47166 -64.23512,-62.93554 c -10.08825,-12.29634 -27.40998,-12.15168 -36.57783,-2.56849 -9.49154,10.13111 -11.39424,23.09471 -0.86847,34.50913 l 82.95827,88.13344 c 9.58206,12.89237 27.86424,12.89237 37.44631,0 L 370.59717,150.43695 c 8.23233,-11.07894 6.52326,-27.2104 -3.81729,-36.03053 -3.28645,-2.80266 -7.20351,-4.6292 -11.35754,-5.29608 z"
id="path3639"
sodipodi:nodetypes="ccccccccccc" />
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After