Danbooru Smart Canvas

Creates an adaptive canvas to enable zoom & pan for images on Danbooru (when viewing original) using scroll & drag, and click to set zoom to 1x/reset zoom

Verze ze dne 02. 06. 2025. Zobrazit nejnovější verzi.

Autor
Broodyr
Hodnocení
0 0 0
Verze
1
Vytvořeno
02. 06. 2025
Aktualizováno
02. 06. 2025
Size
16,0 KB
Licence
MIT
Spustit na

Danbooru Smart Canvas

Enhance your image viewing experience on Danbooru! This script allows you to zoom and pan with your mouse when viewing a full-size original image. It sets the image within a canvas based on your browser size, such that it can be fully viewed without any cut off. The image will initially be scaled down to fill the canvas (if image is larger), or shown at original size (if image is smaller).

How to Use:

  • Zoom: Use your mouse scroll wheel to zoom in and out of the image (up to 3x zoom)
  • Pan: When zoomed in, click and drag the image to pan around
  • 1x Zoom/Reset:
    • Click the image once to set the zoom level to 100% (1x)
    • If already at 1x zoom, click again to reset the image to fit within the canvas

There's also an option in the script (can be toggled in your script manager menu) to allow you to disable the panning feature, if you prefer to keep the default image dragging behavior at all zoom levels. Note that the image is always draggable at the initial zoom level, regardless of this setting.