Optimize size of images and remove screenshot folder from release script

master
Alfred Egger 2019-11-09 10:58:01 +01:00
parent b04491c1cf
commit 6ae44b339e
11 changed files with 7 additions and 6 deletions

View File

@ -34,7 +34,8 @@ rm -Rf \
weather/package.json \
weather/.ci \
weather/.tx \
weather/doc
weather/doc \
weather/screenshots
tar cfz weather-${RELEASE_VERSION}.tar.gz weather
echo "Release version "${RELEASE_VERSION}" is now ready."

BIN
img/fog.jpg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 MiB

BIN
img/mist.jpg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

BIN
img/sun.jpg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

View File

@ -39,7 +39,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
$scope.homeCity = '';
$scope.imageMapper = {
"Clear": "sun.png",
"Clear": "sun.jpg",
"Clouds": "clouds.png",
"Drizzle": "drizzle.jpg",
"Smoke": "todo.png",
@ -48,12 +48,12 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
"Ash": "todo.png",
"Squall": "todo.png",
"Tornado": "tornado.jpg",
"Haze": "mist.png",
"Mist": "mist.png",
"Haze": "mist.jpg",
"Mist": "mist.jpg",
"Rain": "rain.jpg",
"Snow": "snow.png",
"Thunderstorm": "thunderstorm.png",
"Fog": "fog.png",
"Thunderstorm": "thunderstorm.jpg",
"Fog": "fog.jpg",
}
// Reload weather information each minute