]> source.dussan.org Git - nextcloud-server.git/commit
Increase theming performance
authorLukas Reschke <lukas@statuscode.ch>
Sat, 27 Aug 2016 10:38:15 +0000 (12:38 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Sat, 27 Aug 2016 19:02:08 +0000 (21:02 +0200)
commit73bc108451169aa8ba95eba3749c6450de2ded2e
tree49cc8f70889aa2760b0bad356640e5626c4eac85
parentc40df1d9904be51db00bdcf8bc9b3f85511fb24c
Increase theming performance

1. Set proper caching headers (`Pragma: cache`)
2. Resize image proportionally to a max size of 1920px
3. Store images with progressive mode

This resizes a previous 2.8 MB picture to 300kb and makes it rendering going down from 11 seconds to less than 1 here. And future requests won't have to download the file newly.
apps/theming/js/settings-admin.js
apps/theming/lib/Controller/ThemingController.php
apps/theming/tests/Controller/ThemingControllerTest.php