Original message (verbatim)
Cannot resize image before creating it, use set_data() first.
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 empty Image that has no pixel data allocated yet, so there is no underlying buffer to resize.
Typical cause
Image::resize detects that data is empty and requires set_data to fill initial pixels first; otherwise the scale cannot be computed, so it prints the message and returns.
Step-by-step fix
- Allocate an initial size and pixels with create() or set_data() first.
- Call resize on the existing buffer afterward.
- Check whether the image was released early or not initialized on that code path.
Source links
Per-entry sources and capture date are listed at /sources#G32.
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.
Back to the all-errors index Checkout and buy the Pro pack — $19.00