Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
9386b07e
Unverified
Commit
9386b07e
authored
7 years ago
by
Jan-Christoph Borchardt
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7731 from nextcloud/preview_size_inc
Max preview size to 4096x4096
parents
c747d6c9
e2352cc0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.sample.php
+4
-4
4 additions, 4 deletions
config/config.sample.php
lib/private/Preview/Generator.php
+2
-2
2 additions, 2 deletions
lib/private/Preview/Generator.php
with
6 additions
and
6 deletions
config/config.sample.php
+
4
−
4
View file @
9386b07e
...
@@ -849,16 +849,16 @@ $CONFIG = array(
...
@@ -849,16 +849,16 @@ $CONFIG = array(
* The maximum width, in pixels, of a preview. A value of ``null`` means there
* The maximum width, in pixels, of a preview. A value of ``null`` means there
* is no limit.
* is no limit.
*
*
* Defaults to ``
2048
``
* Defaults to ``
4096
``
*/
*/
'preview_max_x'
=>
2048
,
'preview_max_x'
=>
4096
,
/**
/**
* The maximum height, in pixels, of a preview. A value of ``null`` means there
* The maximum height, in pixels, of a preview. A value of ``null`` means there
* is no limit.
* is no limit.
*
*
* Defaults to ``
2048
``
* Defaults to ``
4096
``
*/
*/
'preview_max_y'
=>
2048
,
'preview_max_y'
=>
4096
,
/**
/**
* max file size for generating image previews with imagegd (default behavior)
* max file size for generating image previews with imagegd (default behavior)
...
...
This diff is collapsed.
Click to expand it.
lib/private/Preview/Generator.php
+
2
−
2
View file @
9386b07e
...
@@ -168,8 +168,8 @@ class Generator {
...
@@ -168,8 +168,8 @@ class Generator {
continue
;
continue
;
}
}
$maxWidth
=
(
int
)
$this
->
config
->
getSystemValue
(
'preview_max_x'
,
2048
);
$maxWidth
=
(
int
)
$this
->
config
->
getSystemValue
(
'preview_max_x'
,
4096
);
$maxHeight
=
(
int
)
$this
->
config
->
getSystemValue
(
'preview_max_y'
,
2048
);
$maxHeight
=
(
int
)
$this
->
config
->
getSystemValue
(
'preview_max_y'
,
4096
);
$preview
=
$this
->
helper
->
getThumbnail
(
$provider
,
$file
,
$maxWidth
,
$maxHeight
);
$preview
=
$this
->
helper
->
getThumbnail
(
$provider
,
$file
,
$maxWidth
,
$maxHeight
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment