Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fit images with lower resolution than screen to fullscreen? #1698

Closed
suiluj opened this issue Jun 16, 2020 · 3 comments
Closed

How to fit images with lower resolution than screen to fullscreen? #1698

suiluj opened this issue Jun 16, 2020 · 3 comments

Comments

@suiluj
Copy link

suiluj commented Jun 16, 2020

hello i would like to fit every image to fullscreen.

this is working when the resolution of an image is higher than the monitor resolution.

but it does not work when the image resolution is smaller than the monitor.

of course i want to keep the aspect ratio of the image.

so either it is edge to edge vertical or horizontal.

at the moment an image with lower resolution is centered in the middle:
small resolution photo not fullscreen

image scale fit like this does not work for me.

imageScaleMethod: "fit",

Does someone know how to solve this?

@suiluj
Copy link
Author

suiluj commented Jun 16, 2020

i think it is a problem with the theme of my photo gallery software. photoswipe is not the problem.

gallery software: piwigo
piwigo theme: piwigo-bootstrap-darkroom

@suiluj suiluj closed this as completed Jun 16, 2020
@xikeqian
Copy link

barsSize: { top: 0, bottom: 0 }, // set image distance of top and bottom in options params

@suiluj
Copy link
Author

suiluj commented Jun 28, 2020

@xikeqian yes, thanks for the hint. I added this setting to the options in the piwigo theme.

Piwigo/piwigo-bootstrap-darkroom#253

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

No branches or pull requests

2 participants