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/package.json \
weather/.ci \ weather/.ci \
weather/.tx \ weather/.tx \
weather/doc weather/doc \
weather/screenshots
tar cfz weather-${RELEASE_VERSION}.tar.gz weather tar cfz weather-${RELEASE_VERSION}.tar.gz weather
echo "Release version "${RELEASE_VERSION}" is now ready." 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.homeCity = '';
$scope.imageMapper = { $scope.imageMapper = {
"Clear": "sun.png", "Clear": "sun.jpg",
"Clouds": "clouds.png", "Clouds": "clouds.png",
"Drizzle": "drizzle.jpg", "Drizzle": "drizzle.jpg",
"Smoke": "todo.png", "Smoke": "todo.png",
@ -48,12 +48,12 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
"Ash": "todo.png", "Ash": "todo.png",
"Squall": "todo.png", "Squall": "todo.png",
"Tornado": "tornado.jpg", "Tornado": "tornado.jpg",
"Haze": "mist.png", "Haze": "mist.jpg",
"Mist": "mist.png", "Mist": "mist.jpg",
"Rain": "rain.jpg", "Rain": "rain.jpg",
"Snow": "snow.png", "Snow": "snow.png",
"Thunderstorm": "thunderstorm.png", "Thunderstorm": "thunderstorm.jpg",
"Fog": "fog.png", "Fog": "fog.jpg",
} }
// Reload weather information each minute // Reload weather information each minute