Skip to content

Add option to show original image in viewer instead of showing a preview#3118

Open
david-brauer wants to merge 1 commit intonextcloud:masterfrom
david-brauer:add-setting-to-disable-preview-in-viewer
Open

Add option to show original image in viewer instead of showing a preview#3118
david-brauer wants to merge 1 commit intonextcloud:masterfrom
david-brauer:add-setting-to-disable-preview-in-viewer

Conversation

@david-brauer
Copy link

This is a PR to integrate a simple option to disable previews for images in the viewer. I'm still pretty new to nextcloud development and I don't really know VueJS. So this might not be up to some code standards. If you know a thing I can improve leave a comment and I will try to adapt it.

I know this topic has a very long discussion history with both sides actually having solid use cases for showing previews vs. showing original Images. As someone who only has Images that are 1-2 MB in size I never really had the urge for preview files and instead would like to see the full resolution image.
In my opinion the best solution for the issue is having a setting so that both sides can be happy.

With my change I added a setting that can be set via config.php to disable the previews in the viewer. The default case still remains the same so that previews are being displayed. Anyone that does want to view original images however can set the Option disable_preview_in_viewer to true and get the original image shown.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant