PotionUI Docs v0.3.0

Image editor

The Image editor crops, paints, layers and restyles a picture in a tab of the Generate page, and runs generative edits on a marked region: edit it, remove an object, replace the background, expand or upscale. Your work saves itself on the server, so you can close the tab and carry on later.

GuideWritten for v0.3.0
On this page

What you will see#

The editor is a tab on the Generate page, next to your generation tabs. It is the whole tab: a menu bar on top, the picture in the middle, a rail of tools, and a side panel for layers and edits.

  • The menu bar with File, Edit, View and Tools. File holds Replace picture, Recent edits, Save, Save as new, Replace original, Send to, Download, Copy and Close.
  • The picture in the middle, with an action bar on the canvas for the active tool. Transparent areas show over a checkerboard.
  • The tool rail, in groups: Generate, Transform, Paint, Select and move, Light and colour, Effects, Looks and Cut out. The options for the active tool sit beside it as form fields.
  • Layers and Edits, two lists in the side panel. See Layers and edits.
  • The dock under the canvas, with the floating prompt and the form of the active generative tool, Formulas, Settings and the count of edits applied.
The Image editor tab with a cabin picture open, the Looks tool active, and Ember and Vignette in the Edits list. The Image editor with the Looks tool
The Image editor tab with a cabin picture open, the Looks tool active, and Ember and Vignette in the Edits list.

Open a picture#

You can start the editor empty and pick a picture, or open it from wherever the picture already is.

  1. From the Generate page

    Press the plus button in the tab strip and choose Image editor. On a phone, open the Tabs sheet and pick it from the new tab list.

    What you will see

    Two things side by side. Start from a picture offers Upload file, History and Library, and you can also drop an image on the screen or paste one with Ctrl V. Recent edits lists everything you already started, newest first, twelve to a page, with a search box.

  2. From History or the Library

    Select one or more pictures and choose Open in editor, or press E. The same entry is in the Edit section of a row or card menu. Each picture opens in its own editor tab, the first one active. A picture that is already open in an editor brings its tab forward instead of opening a second one.

  3. From a picture on the generation form

    Open the tools of an image field on the form and choose Open in Image editor. When you save, the editor offers to send the result back to that field.

Two more entries in History and Library open the editor on a specific tool: Apply a look… opens it on Looks, and Slice into references opens it on Slice.

Tip

To work on a different picture in the same tab, use Replace picture in the File menu and pick from Library, History or a file.

Edits save themselves#

Every change is saved on the server as you go, so an edit is not tied to the browser tab or the device.

  • Continue later. Open a new Image editor tab and click an edit under Recent edits (Continue this edit). It opens with the picture and every step you made. Search finds an edit by its name or by the name of the picture it started from. Each tile shows where the picture came from and when you last changed the edit.
  • Reopen what you saved. A picture saved from the editor keeps its steps, so Edit on it reopens the edit as you left it.
  • Closing asks nothing for a saved tab; there is nothing to lose.
  • Rename, Duplicate, Delete. The More button on an edit renames it, adds a copy at the top of the list, or deletes it after you confirm. The original picture is not touched. Saving as new and exporting name the Library item after the tab name.
  • One tab at a time. An edit that is open in another tab is marked Open in another tab, and clicking it takes you there.
  • Changed in two places. If the same edit was changed elsewhere, for example on another device, the editor does not overwrite either version. It offers Load the newer one or Keep mine as a copy.

The tools#

Pick a tool on the rail and set it up in its options. Tools that change the whole picture become steps in Edits; paint and generated results become layers.

GroupToolsWhat they do
GenerateEdit a region, Remove an object, Replace the background, Expand, Upscale, Fix faces and handsGenerative tasks that run a preset mode. See Generative edits. A task only appears when a preset on your instance offers it.
TransformCrop, Resize, Canvas, SliceCrop drags a frame (set an Aspect or Free, orientation holds Rotate and Flip; arrow keys nudge and Enter applies). Resize sets the output size with Keep aspect ratio. Canvas places the picture on a canvas of a size you choose, with a scale, an anchor and a fill colour or transparency. Slice cuts a sheet into pictures (below).
PaintBrush, Eraser, Fill, EyedropperPaint straight onto the selected layer. Every stroke is part of the layer when you lift the pen.
Select and moveRectangle select, Lasso select, MoveSelect, cut, paste and move pieces of a layer.
Light and colourLight, Colour, Split tone, Curves, LUTSliders and curves that grade the whole picture. The picture updates live as you drag.
EffectsFilm grain, Vignette, Grayscale, InvertEffects that work on pictures. The full list, with what each one changes, is in Photo filters and video effects.
LooksLooksRestyles the picture with a look at an Intensity you set. The built-in looks are Dusk, Ember, Frost, Honey, Matte, Noir, Pop, Prism, Reel, Sage, Silver and Tidal.
Cut outColor key, SubjectColor key turns a flat background colour transparent (Key, Tolerance, Softness, Despill, Feather). Subject crops to the subject of a picture that already has transparency, with a Margin and an Alpha threshold.

A lasso joins the brush as a way to mark a region for the Generate tools. Plugins can add tools, rail entries and tasks to the same rail.

Layers and edits#

The side panel has two lists. Layers stack up to make your picture; Edits then change that whole layered picture. Click a list header to fold it; the editor remembers which you folded.

Layers

  • The list holds the original picture at the bottom and everything placed on it: paint layers, pictures you add, and the results of Edit a region, Remove an object and Replace the background. The newest is on top. Each row shows a thumbnail, the name, the opacity and an eye.
  • Add a layer with the plus in the header: an Empty layer (selected, with the brush ready) or a picture from Library, History or a file. A picture layer is dragged to move and scaled and rotated with its handles, and settles when you pick another tool or press Enter. A layer can be added at any time. Nothing else adds one.
  • Paint on a layer by selecting its row. There is no Apply step. If the selected row is Original or a layer you cannot paint on, your first stroke adds one new layer above it.
  • The row menu has Rename, Duplicate, Merge down, Move up, Move down and Delete. The selected layer shows an Opacity slider; the eye hides a layer. Reorder by dragging the grip, or Alt+Up and Alt+Down.
  • Cut and pasted pieces float above the selected layer until you press Enter or pick another tool; Keep as layer makes the piece a layer of its own.

Edits

The Edits list holds everything that changes the whole picture: looks and effects, light and colour, crop, resize, rotate, canvas size and upscale. Steps are numbered in the order they apply, newest on top. You can hide a step with its eye, delete it, or drag it (or use Alt+Up and Alt+Down) to change the order. The picture is made by combining all visible layers, bottom to top with their opacity, then applying each visible edit in order; saving makes the file the same way.

Layers and edits share one undo history, in the order you did things. A generated step whose picture changed underneath it is marked stale and can be regenerated.

Note

Paint saved by an earlier version opens as a single layer. An older edit that has a look or crop between its layers still opens and saves as before, and a note in the panel offers Switch to layers; Undo brings the old order back.

On a phone, Layers and Edits are two sections of one bottom sheet.

Generative edits#

The Generate group runs a preset mode on part of your picture. Choose a setup (a preset and mode) in the bar above the prompt the first time, press the star to make it your default for that task, and press Generate. Each task can use its own setup. The prompt floats over the canvas and the setup's form sits beside it.

  • Edit a region. Mark an area with the brush or the lasso, describe the change and press Generate. The result is blended back as a layer; pick among results, hide it with the eye, or press Try again.
  • Remove an object. Mark what you want gone and press Remove. There is no prompt to write: the area is filled to match its surroundings. Include its shadow also cleans up a shadow or reflection.
  • Replace the background. Find the subject marks everything except the subject (this needs a matting model; the panel says when it is missing), then you fix the mask with the brush or lasso and choose the new background: Describe it for a model, or use a Picture, a Colour or Transparent. The last three need no model and finish at once.
  • Expand. Puts the picture on a larger canvas and generates the new area. Pick one or more formats (Square, Portrait, Story, Landscape, Wide banner, formats your administrator added, or a Custom size), drag the picture in the Position preview to choose where the new area goes, and press Generate. The first format becomes a step in the edit you are working on; every other format becomes an edit of its own that finishes in the background.
  • Upscale. Pick 2× or 4×, or type a width or a height. A large picture is cut into overlapping tiles that are enlarged in turn and blended back without seams. The result is a step in Edits.
  • Fix faces and hands. The editor draws a box on every face and hand it finds; untick the ones to leave alone, or mark a missed spot by hand, set a Strength and press the button. Each spot is redrawn in turn and the result lands as a layer.
Note

Some setups reach Remove an object, Replace the background or Expand through Edit a region with a built-in instruction; the setup says so under its name. An administrator adds named Expand formats in Admin, Settings, Generation.

Save, replace or send#

Your edit is already kept; saving makes a picture of it. Choose from the File menu:

  • Save updates the picture you saved earlier from this edit, and Save as new makes a new Library item. The original is kept.
  • Replace original overwrites the Library item you opened. Only a Library item can be replaced; for a picture from History the row reads “Files from History stay as generated”, and for a dropped file “A dropped file has no original to replace”.
  • Send to lists the image fields of your open generation tabs, by preset and field. A field that accepts an inpainting mask is marked MASK and receives your mask with the picture. New generation tab… opens a fresh tab for a preset you pick.
  • Download and Copy image give you a file on your device or the picture on your clipboard.
What you will see

Saving shows its progress as a percentage, then a confirmation. Sending says which field and tab received the picture.

Slice a sheet into references#

Slice turns one picture holding several images into separate pictures, for example to use them as references in a preset that takes several.

  1. Open the sheet on Slice

    Choose Slice on the rail, or Slice into references in History or the Library.

  2. Find the cells

    Use Detect panels, or set a grid in Columns and Rows. Snap to gutters lines the cells up with the gaps between panels. Add box draws a cell by hand; long-press a second cell to merge two, and drag a cell's lines to resize it.

  3. Shape the output

    Trim background (with a Tolerance) cuts away a plain border. Padding, an Aspect for every cell (Keep, Square or Portrait 2:3) and Names set how each cell is saved. In the output strip you can skip a cell or drag to reorder.

  4. Save

    Save the cells as Library images, or choose Use as references to send them into a references field of an open generation tab.

    What you will see

    Each cell becomes its own Library image, and its Library details name the sheet and the cell it came from. Slicing never overwrites the sheet.

Slice is always the last step: you cannot add edits after it.

Limits and what to do when it goes wrong#

  • Uploads. A file you drop, paste or browse to must be an image, audio or video file of at most 512 MB, and it counts toward your plan's storage and file limits.
  • A Generate tool is missing. A task is listed only when a preset on your instance has a mode for it. Install a preset that offers it, or ask your administrator.
  • Subject needs transparency. Crop to subject reads the transparent area of the picture. Run Color key first, or start from a cutout.
  • Replace original is greyed out. The picture came from History or a dropped file. Use Save as new.
  • No field to send to. Send lists only open generation tabs whose preset has a matching field. Pick a preset with a matching field, or use New generation tab….
  • A picture changed under a step. A generated step whose picture changed is marked stale; regenerate it.
  • Copy failed. Some browsers do not allow copying a picture to the clipboard. Use Download instead.