Sub topic 6
Choosing an Image File Format
Assume you can navigate Blender’s 3D Viewport, Properties editor, and Timeline. You also have a scene with a camera, lighting, and at least one renderable object. This chapter focuses on choosing the image format that Blender writes after rendering.
The file format affects image quality, transparency, file size, and whether the image remains useful for later compositing. Choose the format based on what happens after rendering, not only on how small the file is.
The main image formats
PNG, JPEG, and OpenEXR cover most Blender workflows.
| Format | Best use | Strengths | Limitations |
|---|---|---|---|
| PNG | Final stills and image sequences | Lossless compression, optional alpha, 8-bit or 16-bit color | Larger files than JPEG |
| JPEG | Small previews and web images | Small files and broad compatibility | Lossy, 8-bit, no alpha |
| OpenEXR | Compositing and visual effects | High dynamic range, 16-bit or 32-bit float data, multiple channels | Large files and less universal support |
Lossless compression preserves the rendered pixel values. Lossy compression discards some information to reduce file size. JPEG uses lossy compression, so repeated saving can add visible artifacts around edges and fine details.
Choosing bit depth and alpha
Bit depth is the number of values available for each color channel. An 8-bit channel has 256 possible values. A 16-bit channel has many more, so it handles smooth gradients with less risk of banding.
Use PNG with 8-bit color for ordinary final images. Use 16-bit PNG when you need a clean gradient but do not need high-dynamic-range compositing.
Use OpenEXR when the image will enter a compositor, color-grading process, or visual-effects pipeline. OpenEXR can preserve a wider range of brightness than a display-ready PNG or JPEG. It is usually a better intermediate format than a final delivery format.
Alpha is a transparency channel. Select RGBA when the image must contain transparency. In Blender, also enable Film > Transparent. Selecting RGBA alone does not make the world background transparent.
Configure the format in Blender
In the Output Properties, set Image Format and then check Color, Color Depth, and Compression. For an animation, the same settings apply to every frame in the image sequence.
The following script saves a 16-bit RGBA PNG. It assumes the current file already contains a camera and a renderable scene.
import bpy
scene = bpy.context.scene
image_settings = scene.render.image_settings
image_settings.file_format = 'PNG'
image_settings.color_mode = 'RGBA'
image_settings.color_depth = '16'
image_settings.compression = 15
scene.render.film_transparent = True
scene.render.filepath = '//renders/transparent_####.png'
bpy.ops.render.render(write_still=True)The #### in the path becomes a frame number when Blender writes an animation frame. For a still render, a path without padding is clearer, such as //renders/still.png.
Select a format by workflow
Use OpenEXR for working files, PNG for reliable delivery, and JPEG only when compatibility or file size matters more than pixel fidelity.
Exercise
You need a transparent logo render for a website and a high-quality master for later compositing. Which formats should you choose?
Show answer
Choose RGBA PNG for the transparent website image and OpenEXR for the compositing master. Enable Film > Transparent for the PNG render.