vgmdb / tracker

Issues and feature requests for vgmdb.net
11 stars 0 forks source link

Fix thumbnail size for tall images #96

Closed Illidanz closed 3 years ago

Illidanz commented 3 years ago

See the obi thumbnail here: https://vgmdb.net/album/34682

https://thumb-media.vgm.io/albums/28/34682/34682-ddaed4c5976f.jpg

Illidanz commented 3 years ago

Should also set a maximum size for the images in the Recent Scans page: https://i.imgur.com/3jG1okD.png

vgmcal commented 3 years ago

The issue is that the image scaler doesn't check the width and height values before resizing. It always resizes to a fixed width.

The function should be changed to check the width/height of the input image. This way it will resize based on the height for tall images.