Home / Godot / G31

Godot error: Cannot resize in compressed image formats. — cause and fix

resize is called on an Image still in a compressed format (such as WebP or a compressed im

ID
G31
Engine
Godot
Verification
源码原文(core/io/image.cpp:1269)
Frequency
未公开

Original message (verbatim)

Cannot resize in compressed image formats.

Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.

Trigger

resize is called on an Image still in a compressed format (such as WebP or a compressed import state), and the engine refuses to scale it before decompression.

Typical cause

In a compressed format the pixels are not decoded; the resize branch detects the compressed flag and calls ERR_FAIL_MSG directly.

Step-by-step fix

  1. Decompress or convert the image to an uncompressed format before resizing.
  2. Confirm the import settings do not force a compressed format.
  3. Generate thumbnails in the import pipeline instead of resizing a compressed image at runtime.

Source links

Per-entry sources and capture date are listed at /sources#G31.

Related errors

Related Godot errors

Need an offline quick-reference checklist?

Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.

View Pro pack / order

Back to the all-errors index Checkout and buy the Pro pack — $19.00