Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

daswer123/canvas-zoom-showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

This repo has moved to the Wiki in the official canvas-zoom repo canvas-zoom wiki

Canvas-zoom extension showcase

This repository is a demonstration of all the canvas-zoom extension capabilities for stable-diffusion-webui

  1. Context menu
  2. Moving canvas
  3. Zooming canvas
  4. Controls
  5. Mask transparency
  6. Extra

For Beginners

Use the context menu to customize the hotkeys.

Important functions you should know: Moving canvas , Zooming canvas, Undo, Reset zoom, Overlap elements and Fit to screen

Default hotkeys:

Shift + click or wheel (hold) - Move canvas

F (hold) - Move canvas

Shift + "+" or Shift + "-" - Scale canvas ( numpad keys also work )

Shift + wheel - Scale canvas

Ctr + wheel - Change brush size

S - Zoom in on the canvas so that it fits into the screen

R - Reset Zoom.

Q - Open/Close color panel

T - Open color panel right above the mouse. The mouse should be in the image area

A - Enable dropper

O - Overlap all elements and back

Ctr-Z - Undo last action

C - Toggle mask transparency mode ( Works only in Inpaint )

V - Toggle brush transparency mode ( Works only in Inpaint )

Context menu

This application has a context menu that is called by Right mouse button , you must click in the image field in Inpaint, Sketch, Inpaint Sketch

In the context menu you can:

  1. Change the hotkeys as you like
  2. Adjust the degree of transparency
contextMenu.mp4

Moving canvas

Move via shift

You can move canvas with shift + wheel (hold) The movement goes where the mouse is pointing

shift-wheel.mp4

Move via hotkey

You also can move via hotkey F

f-move-mode1.mp4

Zooming canvas

You can zoom canvas with shift + wheel

zoom-shift+wheel.mp4

Zoom via keys

If you don't have a mouse or don't want to zoom with the wheel, you can also use Shift + "+" and Shift + "-" (Numpad also works) to zoom in and out

zoom-shift++-.mp4

Fit to screen

You can immediately zoom in on the image so that it fits into your screen on S.

fitToScreen.mp4

Controls

Keys that allow you to control the state of canvas

Reset zoom

You can quickly reset the zoom on the R key

resetzoom1.mp4

Toggle overlap elements

You can enable overlapping of elements, on the key O so that nothing disturbs you

overlap1.mp4

Undo last action

You can quickly undo the last action on Ctr+Z

In the latest update you can now undo lines in a canvas that you have dragged through the buttons (in Sketch or Inpaint Sketch), only the undo hottkey works (Ctr+z by default)

undo.mp4

Adjust brush size

You can quickly adjust the brush size with Ctr+wheel

brushSize.mp4

Fast open color panel

You can quickly on Q open the color bar and select a color or dropper

openBrushPanel.mp4

Open color panel under mouse

If you get too close to the image or if you don't want to reach the default location of the color box you can open it right next to the mouse. Press the T key

brushpanelundermouse.mp4

Enable dropper, you can pick color from img

You can quickly select any color with the dropper in Sketch and Inpaint Sketch (Default key is "A")

bandicam.2023-04-21.02-36-54-581.mp4

Mask transparency

You can't draw in transparency mode, otherwise there is a chance that one of the lines will be cancelled. Turn off mask transparency mode when you draw. This mode is not stable yet, work will be done to improve it.

You can adjust the mask and brush transparency in the context menu.

Canvas transparency

On the C hotkey you can turn on the transparency mode of the mask.

bandicam.2023-04-28.01-08-21-078.mp4

Brush transparency

On the V hotkey you can turn on the transparency mode of the brush.

opacityBrush.mp4

Extra

Button to get the dimensions of the image

bandicam.2023-04-24.22-01-54-910.mp4

Filling the canvas with color

You can fill the canvas with brush color for easy editing if you need to paint from scratch

bandicam.2023-05-01.22-39-23-345.mp4

About

Demonstration of features in canvas-zoom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published