Prevent Image Scaling

Force full-size gallery viewer to display images at their native resolution, with scaling options.

作者
Takafumi Sakagami
日安装量
0
总安装量
1
评分
0 0 0
版本
1.1
创建于
2025-04-01
更新于
2025-04-01
大小
5.2 KB
许可证
暂无
适用于

Replaces the default scaling method (upscaled to fit whatever size your browser window is) with a native display, allowing you to see what size images were uploaded at. From there, you can drag the image around, zoom in and out, and switch between bilinear and pixel-perfect scaling.

As is, the scaling is handled in chunks of 25%, but you can edit it freely.

How to use:
When on the bsky site, you'll have a new zoom UI. Left-click on a thumbnail image to open up the image viewer, then you can zoom in and out using the zoom UI.
A button is included to switch to a nearest-neighbour scaling mode, ideal for viewing pixel art.
After interacting with the zoom UI, you can hold the middle mouse button or right-click to drag the image around the screen.
Left-clicking again will close the image viewer.

It's a bit clunky since I've never done this before and just wanted to fix a frustrating part of the Bsky experience.
As such, there are a few minor bugs:
1) This breaks profile picture display. It's tied to the same styling as the image viewer is.
2) The 'compose' button will be ridiculously large, but this button only seems to appear for me if I make my browser window too small, which I never do in real-world use.
3) Clicking the gallery arrows twice (both clicks without any mouse/UI input between) will reset the zoom and positioning of an image. This also occurs if you click a gallery arrow then change the scaling method.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址