Default zoom to either 'Width' or 'both' #1

Closed
opened 2022-09-02 03:47:34 +00:00 by GManon · 2 comments
Contributor

Hello, right now the booru is set to display images with their full width, which sounds great in principle but it doesn't work well with big images.

For example, this post looks like this on a common 1080p monitor.

A fix for this is changing the zoom of the image to either 'Fit width'.

Or fit both.

Whichever option you choose will be better than having the image be huge by default, and no, changing this option will not affect small images.

Also, I did some looking trying to fix this myself and I think changing line 43 in ext/handle_pixel/script.js to default: zoom("both"); break; would fix it, but I haven't been able to try it since doing that would require too much effort.

Cheers.

Hello, right now the booru is set to display images with their full width, which sounds great in principle but it doesn't work well with big images. For example, [this post](https://booru.cavemanon.xyz/index.php?q=post/view/6496) looks like this on a common 1080p monitor. ![](https://files.catbox.moe/7h4i86.png) A fix for this is changing the zoom of the image to either 'Fit width'. ![](https://files.catbox.moe/g2mj7f.png) Or fit both. ![](https://files.catbox.moe/616iy5.png) Whichever option you choose will be better than having the image be huge by default, and no, changing this option will not affect small images. Also, I did some looking trying to fix this myself and I think changing line 43 in ext/handle_pixel/script.js to `default: zoom("both"); break;` would fix it, but I haven't been able to try it since doing that would require too much effort. Cheers.
Owner

I'll probably be a bit more free to look into this on sunday, I was getting a little peeved myself at the largeness of some images.

I'll probably be a bit more free to look into this on sunday, I was getting a little peeved myself at the largeness of some images.
Owner

solved by a very helpful anon contributing some code

solved by a very helpful anon contributing some code
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Cavemanon/cavepaintings#1
No description provided.