Skip to content

add config-option for an image's maximum filesize when generating previews - #13449

Merged
DeepDiver1975 merged 1 commit into
masterfrom
image_preview_limit
Jan 22, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
image_preview_limit

Conversation

@georgehrke

Copy link
Copy Markdown
Contributor

fixes #13218

@MorrisJobke

Copy link
Copy Markdown
Contributor

works 👍

Comment thread config/config.sample.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Comment thread config/config.sample.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlaschroder please review this documentation -THX

@ghost

ghost commented Jan 19, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/7252/
🚀 Test PASSed. 🚀

@carlaschroder

Copy link
Copy Markdown

👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

@oparoz @wakeup @Sugaroverdose An easy to review PR ;) Simply use a big image ( https://commons.wikimedia.org/wiki/File:Bath_from_alexandra_park.jpg ) and test if it doesn't has a preview while smaller images still have previews. ;)

@oparoz

oparoz commented Jan 21, 2015

Copy link
Copy Markdown
Contributor

My problem is that it doesn't really fix #13218

I'd like this line to be fixed as part of the overall solution: https://github.com/owncloud/core/blob/master/lib/private/image.php#L470

And I'd like for these defaults to be modified to something reasonable like 2048x2048 so that we can start to generate sane previews for a browser/mobile environment.
https://github.com/owncloud/core/blob/master/config/config.sample.php#L611
https://github.com/owncloud/core/blob/master/config/config.sample.php#L616

Comment thread config/config.sample.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that we have other preview related settings - please move this one to the others and name accordingly

preview_max_filesize_image

Sorry for the late notice

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@oparoz we discussed already that fixing OC_Image is too critical for the current dev cycle - we can touch this class for OC8.1. This PR is a workaround for OC8

@oparoz

oparoz commented Jan 21, 2015

Copy link
Copy Markdown
Contributor

@DeepDiver1975 Line 470 is a logging operation which kills PHP. Surely this can be removed in OC8 or simplified to just output a simple string?

The other settings I've mentioned have values of null, which make as much sense as having no limit on filesize imho.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@DeepDiver1975 Line 470 is a logging operation which kills PHP. Surely this can be removed in OC8 or simplified to just output a simple string?

Ah - I see what you mean now - sorry - I was on a different track .... 🙈

It's indeed pointless to write the blob content to the log here : facepalm:

@georgehrke please submit a second pr where this log line is simply killed

@oparoz feel free to submit this pr as well if you are interested - THX

@oparoz oparoz mentioned this pull request Jan 22, 2015
6 of 11 tasks
@georgehrke

Copy link
Copy Markdown
Contributor Author

@georgehrke please submit a second pr where this log line is simply killed

#13614

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 4 new issues

@ghost

ghost commented Jan 22, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/7749/
🚀 Test PASSed. 🚀

@DeepDiver1975

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Jan 22, 2015
add config-option for an image's maximum filesize when generating previews
@DeepDiver1975
DeepDiver1975 merged commit 5776bfe into master Jan 22, 2015
@DeepDiver1975
DeepDiver1975 deleted the image_preview_limit branch January 22, 2015 22:02
@DeepDiver1975

Copy link
Copy Markdown
Contributor

@karlitschek backport? Was reported as issue on oc7

@karlitschek

Copy link
Copy Markdown
Contributor

backport would be good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.0.6] Thumbnails of 140MB photo files result in a timeout error of the WebGUI

7 participants