Skip to content

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

@suiluj

Description

@suiluj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions