Skip to content
العربية
XiKey™DESKTOP
Downloads

Learn

upscale

Upscale with a memory preview

Open Image › Upscale… (Ctrl+Alt+U). Each 2×, 3× and 4× row shows the output dimensions and estimated total memory in MiB. Unavailable factors show their reason; the largest factor that fits is selected automatically. A 4000 × 3000 image becomes 8000 × 6000 at 2×, 12000 × 9000 at 3×, or 16000 × 12000 at 4×. Its RGBA output alone needs about 183, 412 or 733 MiB; processing needs additional memory.

The estimate includes the current document, one conservative History copy, the new document, pixel buffers and processing scratch. It includes masks, channels, stored frames and off-canvas pixels. This is a conservative admission estimate; shared History tiles can use less actual RAM.

Choose a fitting size

Select Target size…, then choose Width / height, Long edge, or Percent. Width and height may be set independently; long edge and percent preserve the input aspect ratio. The displayed Fitting target is reduced proportionally to stay within the memory limit. Target size uses Lanczos. Review the actual dimensions before choosing Upscale. If even the smallest result cannot fit, increase the limit or free memory; Upscale remains disabled.

If memory changes or an allocation fails, the dialog keeps the original document intact and offers Use 3× instead (or the largest fitting factor), Upscale selection only when a selection exists, Target size…, and Change memory limit…. The factor action retries immediately. Selection copies the visible selected pixels, including feathered transparency, into a new RGB document and upscales that copy. The original document stays open and unchanged.

Maximum memory for upscaling

Open Edit › Preferences › Integrations › Maximum memory for upscaling. Choose Auto or a Custom total operation limit in MiB. Apply/OK saves it; Cancel discards the draft. The recovery button opens this same preference and returns to Upscale after Preferences closes.

For current available physical RAM A, conservative resident document bytes D, and a 256 MiB reserve, Auto uses D + max(A − 256 MiB, 0) / 2. A custom total limit is clamped to D + max(A − 256 MiB, 0) and the addressable allocation limit (isize::MAX). Windows, macOS and Linux memory information is read through sysinfo; Linux cgroup limits and current usage further narrow the available amount. Unknown memory information admits no allocation.

The estimate charges 2D + scaled document + source RGBA + output RGBA + 4 × max(source RGBA, D) + 8 × max(output RGBA, scaled document); AI also reserves 512 MiB for bounded inference/decoding work. Tile padding is included. The full-float allowance intentionally overestimates banded CPU paths. Memory is checked again before the worker starts, and large AI buffers use fallible allocation. Physical RAM is separate from GPU memory, and a snapshot cannot guarantee that later allocations succeed.

Play: recover from a large image

  1. Open a 4000 × 3000 image and open Image › Upscale.
  2. Set a 5120 MiB custom memory limit in Preferences, then return to Upscale.
  3. Review 3× selected and 4× marked over the memory limit; layer-heavy images may need a smaller factor.
  4. Choose Target size, enter a long edge, and review the fitting output dimensions.
  5. Alternatively draw a selection, reopen Upscale, and choose Upscale selection only in the recovery message.
  6. Inspect the new selection document or undo a whole-document upscale in one step.

AI output currently collects a contiguous result after tiled inference. Streaming directly to tiled document storage is assessed separately for 0.9.14; it is not part of this change.