gamevault-app
gamevault-app copied to clipboard
Crop backgrounds and box art if they are not the correct aspect ratio
Is your feature request related to a problem? Please describe.
Backgrounds and box art both currently follow a stretch to aspect ratio rather than maintain aspect ratio + crop, similar to CSS's object-fit
as cover
property. This requires a lot of manual labour to make games that are not found on RAWG look good in library.
Describe the solution you'd like
By default, images do not stretch but instead always match desired image based on aspect ratio.
- Aspect ratios that are too tall will be cropped at the top and bottom, and centred.
- Aspect ratios that are too wide will be cropped at the left and right, and centred.
- Images that are too small will also be resized until one of the dimensions matches the required.
Describe alternatives you've considered
Aside from using an alternative frontend, the alternative is to manually resize the images.
Additional context
I am willing to try to implement this myself, but I don't have a lot of free time, and I'm not really a .NET developer.