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 do i fix Thumbnails? #672

Open
Corrosive1 opened this issue Jul 13, 2024 · 7 comments
Open

How do i fix Thumbnails? #672

Corrosive1 opened this issue Jul 13, 2024 · 7 comments

Comments

@Corrosive1
Copy link

Hello,

i successfully setup my own Booru, and added a few posts, but the previews aka thumbnails aren't looking right and only display a portion of the image like here:

TEY0YXh

can i tell the server to display it correctly for each image?

@nocrcl
Copy link

nocrcl commented Jul 13, 2024

In your Szurubooru, click on the hamburger/menu icon, and open the browser settings (cogwheel) and tick on Use post flow.

This will show the thumbs in a more correct way (nearly the width to height ratio as the original image) but also make them look smaller. Also this option isn't permanent but can be set somewhere in the configs.

@Corrosive1
Copy link
Author

Thanks, it did work a bit, it stretched some images to Width but not perfectly like seen here

v5PCwpg

i was hoping there would be a way to have the thumbnails resized to the size of a normal tile :)

@Corrosive1
Copy link
Author

I tried my best i changed all instance if height and width in post-upload.styl but it did nothing?

does any of the devs maybe have an idea? @neobooru

@neobooru
Copy link
Collaborator

By default the thumbnails should be resized so that they fill the rectangle, while keeping their aspect ratio.
I don't fully understand what you want to achieve.
Do you want the thumbnails to display the whole content? In this case you will get white borders around the thumbnails if the source images are not rectangular.

@Corrosive1
Copy link
Author

Thanks for the response, the thing is "keeping the aspect ratio" in the first screenshot the full width is displayed, but only a small portion of the height is displayed, id love this to show the whole content no matter if i get white borders or just stretch and disregard aspect ratio

Thanks :)

@po5
Copy link
Contributor

po5 commented Jul 22, 2024

Addressed in my fork. 8acaf65, 2afbce1

@Corrosive1
Copy link
Author

THANKS that did it 100'% (except the background thing in post-main-view.styl was not there but it all worked 100% thanks so much.

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

4 participants