Xbozon / storyteller

A small modification that allows you to present the story in the game as an open book.
Apache License 2.0
16 stars 9 forks source link

Image resize #2

Open reubzilla opened 2 years ago

reubzilla commented 2 years ago

Need a way to resize the image, either automatically or manually, to fit the right-hand page.

Screenshot 2021-11-08 at 11 24 11
Xbozon commented 2 years ago

@reubzilla

Since this is the first version, I have not yet had a good image editor. The peculiarity is that the image will try to take up all the available space on the right side. Stretching the width or height if they are not enough. Because of this, part of the image may be cropped.

Use 750px x 580px image size (and its larger proportions) as a temporary solution.

Benjaneer commented 2 years ago

got it, add "; background-size: contain; background-repeat: no-repeat" to this line in the storysheet.html: \

i.e.: \
this will scale the "background" image to fit and turn off repeat so it only appears once (it's already centered horizontal and vertical)

Benjaneer commented 2 years ago

please include this in your next release (I already solved it for you, it just shrinks to fit)