rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
677 stars 173 forks source link

How do i fix Thumbnails? #672

Open Corrosive1 opened 1 month ago

Corrosive1 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Addressed in my fork. 8acaf65f7baa80ff2412a3bcb0a8eca8d1bd4b60, 2afbce1fde5e4ce7447ad40091fd36e7b096a70c

Corrosive1 commented 1 month ago

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.