diff options
author | Nina Pypchenko <22447785+nina-py@users.noreply.github.com> | 2021-01-10 19:14:49 +1100 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2021-01-14 17:36:17 +0000 |
commit | c14638877c0bb0533a72842ccc7c73d88f5122f0 (patch) | |
tree | bac7b25321ce61e30b578f51a9692ff52955edc8 /apps/files/appinfo | |
parent | 97743df3fcd6243f9b2755a4c86586b61a96e793 (diff) | |
download | nextcloud-server-c14638877c0bb0533a72842ccc7c73d88f5122f0.tar.gz nextcloud-server-c14638877c0bb0533a72842ccc7c73d88f5122f0.zip |
Add "Crop image previews" setting to files
Added a new user setting that toggles cropping on image previews
in grid view.
True (default value): crops each image to a square. False: keep original
aspect ratio.
Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com>
Closes #18439.
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/routes.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index d5edd068cdb..65c8deb4427 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -77,6 +77,11 @@ $application->registerRoutes( 'verb' => 'POST' ], [ + 'name' => 'API#cropImagePreviews', + 'url' => '/api/v1/cropimagepreviews', + 'verb' => 'POST' + ], + [ 'name' => 'API#showGridView', 'url' => '/api/v1/showgridview', 'verb' => 'POST' |