Sub topic 5
Resolution, percentage, and aspect in the Output properties
This chapter assumes you can open the Properties editor and switch to the Output tab. It also assumes you have a scene with a camera that already frames your subject. Everything here lives in the Format panel of the Output properties. The same settings are available from Python through scene.render.
What the Format panel controls
Three groups of settings decide the pixel size and shape of every frame Blender renders.
- Resolution X and Y set the full-size image dimensions in pixels.
- Resolution percentage scales those dimensions up or down without changing the framing.
- Pixel aspect X and Y describe the shape of each pixel, which is normally square.
The camera's view is cropped or extended to match the aspect ratio these settings produce. Resolution is therefore also a framing decision, not just a quality setting.
Resolution X and Y
Resolution X is the width and Resolution Y is the height. A new default scene uses 1920 by 1080, which is a 16:9 aspect ratio. The aspect ratio is the width divided by the height, so 1920 / 1080 is about 1.78.
Common targets:
| Target | Resolution | Aspect ratio |
|---|---|---|
| HD video | 1280 x 720 | 16:9 |
| Full HD video | 1920 x 1080 | 16:9 |
| 4K UHD video | 3840 x 2160 | 16:9 |
| Square social post | 1080 x 1080 | 1:1 |
| Vertical video | 1080 x 1920 | 9:16 |
| Cinema 2K (DCI) | 2048 x 1080 | about 1.9:1 |
The Format panel also has a presets menu next to the title. It sets X, Y, aspect, and frame rate together, so pick a preset first and then adjust single values.
How the camera frame follows resolution
The camera does not store an aspect ratio. Blender takes it from Resolution X and Y, so changing 1920 x 1080 to 1080 x 1080 changes what the camera sees. The camera's Sensor Fit setting decides which direction stays fixed:
- Auto applies the sensor size to the longer side of the image. A wide image keeps its horizontal field of view, and a tall image keeps its vertical one.
- Horizontal and Vertical lock the field of view to that axis regardless of orientation.
If a subject gets cut off after you switch to a portrait format, the field of view probably rotated with the longer side. Switch Sensor Fit to the axis you want to keep, or move the camera back.
Resolution percentage
The percentage multiplies both X and Y. At 100% you render the sizes you typed. At 50% a 1920 x 1080 setting renders at about 960 x 540. The framing is identical, only the pixel count changes.
Rendering cost scales with the pixel count, so halving each side cuts the pixel count to a quarter. That makes the percentage the quickest way to make a draft render.
The advantage over editing X and Y is that your target size stays recorded. You can render a test at 25% and then return to 100% for the final render without retyping anything.
The panel's value ranges from 1% to 32767%. Values above 100% give a supersized render, but memory use grows with the square of the scale, so large values can exhaust RAM or GPU memory.
import bpy
scene = bpy.context.scene
render = scene.render
render.resolution_x = 1920
render.resolution_y = 1080
render.resolution_percentage = 50 # draft
scale = render.resolution_percentage / 100
print("Target size:", render.resolution_x, "x", render.resolution_y)
print("Draft size:", int(render.resolution_x * scale), "x", int(render.resolution_y * scale))The printed draft size is an estimate. Check the actual size in the Image Editor's metadata or in the saved file.
Percentage and the saved file
The percentage affects the saved file, not only the preview. If you render a final animation and the files are half the size you expected, the percentage was probably left at 50%. Look at it first when output dimensions are wrong.
Pixel aspect
Pixel aspect X and Y describe how wide a pixel is compared with its height. The default is 1.0 by 1.0, meaning square pixels, which is right for nearly every modern output: web video, social media, and still images.
Non-square pixels belong to some legacy broadcast formats. For example, some standard-definition video stores 720 x 480 pixels that are displayed stretched to 4:3 or 16:9. If you are not delivering to such a format, leave both values at 1.0.
Changing the pixel aspect changes the camera framing. Blender widens or narrows the view so that the image will look right once stretched. A scene that looks squashed in the viewport after you change these values is not broken. It is shown with the stored pixel shape.
Render region and cropping
Turning on Render Region in the Format panel (it appears in the Output properties as a checkbox, and you draw the region with Ctrl+B in the camera view) restricts the render to a rectangle. You can clear it with Ctrl+Alt+B. This is useful when you want to check a single material or an area that is noisy.
The next option decides what ends up in the file:
- With Crop to Render Region off, the output keeps the full resolution and the area outside the region stays empty.
- With it on, the output image is cut to the size of the region.
Leaving a region active by mistake is a common cause of final renders that show only part of the frame. In Python the region is stored as fractions from 0 to 1 of the frame:
import bpy
render = bpy.context.scene.render
render.use_border = True
render.use_crop_to_border = False
render.border_min_x = 0.25
render.border_max_x = 0.75
render.border_min_y = 0.25
render.border_max_y = 0.75
# Turn it off again before a final render.
render.use_border = FalseChoosing values in practice
- Pick the delivery format first. Decide the final pixel size and aspect ratio, and enter it in X and Y before you frame the shot.
- Frame in the camera view. Press
Numpad 0and adjust the camera using the real aspect ratio. - Draft with the percentage. Use 25% to 50% while you tune lighting and animation.
- Reset to 100% for the final render. Look at the percentage field as part of your pre-render checklist.
- Keep video dimensions even. H.264 with the common 4:2:0 color format needs even width and height. An odd size such as 1081 pixels high can make the encode fail or force the encoder to change the size. Check the percentage too: a 75% scale of a size that is not divisible by 4 may produce an odd result.
Setting size from the command line
Blender has no command-line flag for resolution, so set it with a Python expression. Arguments run in order, so the expression must come before the frame option:
blender -b scene.blend --python-expr "import bpy; bpy.context.scene.render.resolution_percentage = 50" -o //renders/draft_#### -F PNG -x 1 -f 1This renders frame 1 at half size without changing the saved .blend file.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Output is smaller than expected | Percentage below 100% | Set it to 100% |
| Only a rectangle of the frame is rendered | Render Region is on | Turn off Render Region or press `Ctrl+Alt+B` |
| Subject cut off after changing aspect | Sensor Fit keeps the wrong axis | Change Sensor Fit or move the camera |
| Image looks stretched | Pixel aspect is not 1.0 | Reset Aspect X and Y to 1.0 |
| Video encode fails or shifts size | Odd width or height | Use even dimensions |
| Blender runs out of memory | Very large size or percentage above 100% | Lower the size or render in tiles of work |
Exercises
Exercise
Your scene is set to 1920 x 1080 with a resolution percentage of 50%. Roughly what size are the rendered files, and how does the render time compare with 100%?
Show answer
About 960 x 540 pixels. That is a quarter of the pixels, so render time is roughly a quarter, though fixed costs such as scene loading do not shrink.
Exercise
You switch a landscape project to 1080 x 1920 for vertical video, and the subject is now cut off at the sides. Which camera setting should you check first, and why?
Show answer
Check Sensor Fit. With Auto, the field of view is applied to the longer side, which is now vertical, so the horizontal view becomes narrower. Setting Sensor Fit to Horizontal, or moving the camera back, keeps the subject in frame.
Exercise
A final render comes out at the right size, but only a rectangle in the middle shows the scene. Which two settings could explain the result, and how do you fix it?
Show answer
Render Region is on and Crop to Render Region is off, so the file keeps the full size but only the region is drawn. Turn off Render Region (or press Ctrl+Alt+B in the camera view), then render again.