Overview
Extracts a rectangular area from an image using coordinates. Use it to take one frame from a sprite sheet, extract the needed area from a large reference image, or remove padding.
Usage tips
- A frame in a sprite sheet is determined mechanically by
x = column ร frame width, y = row ร frame height. Turnxinto a variable and iterate it withbatch_renderto process every frame at once. If you want to treat the input as a sprite sheet, the dedicatedsprite_sheet_frame_getis easier. - To keep the artwork unchanged and only narrow the canvas, use
canvas_resize, which supports anchor-based placement such as centering. Crop uses coordinates from the top-left origin. - Keep coordinates pixel-accurate. Zoom in on the preview boundary before finalizing it.
- The output is always exactly
width ร height. Areas outside the sourceโincluding a rectangle entirely beyond the sourceโare transparent.
Common pitfalls
- The edge is off by 1px: x/y are zero-based. The second frame starts at
x = ใณใๅน ร1. - The selection extends beyond the image: the output size stays fixed and the overflow becomes transparent. Check x+width and y+height if transparency is unexpected.
- Transparent padding should be removed automatically: consider automatic trimming
with a
content_resize-family node instead of finding coordinates by hand.
Related nodes
canvas_resizeโ anchor-based canvas expansion or reduction, including centeringsprite_sheet_frame_getโ dedicated frame extraction from a sprite sheetcontent_resizeโ resize to the contentblendโ reposition an extracted part