diff --git a/docs/gallery/damped-track-aim/index.html b/docs/gallery/damped-track-aim/index.html
index 9d95b19d..337783e9 100644
--- a/docs/gallery/damped-track-aim/index.html
+++ b/docs/gallery/damped-track-aim/index.html
@@ -672,6 +672,9 @@
Source
scene.view_settings.view_transform = "Filmic"
scene.view_settings.look = "Medium High Contrast"
scene.render.image_settings.file_format = "PNG"
+ # Blender resolves a relative filepath against the blend-file directory, which
+ # for a --background run with no .blend is the drive root, not the cwd.
+ path = os.path.abspath(path)
scene.render.filepath = path
bpy.ops.render.render(write_still=True)
return os.path.exists(path) and os.path.getsize(path) > 0
diff --git a/docs/gallery/gn-sdf-remesh/index.html b/docs/gallery/gn-sdf-remesh/index.html
index 81a4ae5c..86d92c8c 100644
--- a/docs/gallery/gn-sdf-remesh/index.html
+++ b/docs/gallery/gn-sdf-remesh/index.html
@@ -402,6 +402,9 @@ Source
try: sc.eevee.taa_render_samples = 64
except Exception: pass
sc.render.resolution_x = 1280; sc.render.resolution_y = 720
+ # Blender resolves a relative filepath against the blend-file directory, which
+ # for a --background run with no .blend is the drive root, not the cwd.
+ path = os.path.abspath(path)
sc.render.image_settings.file_format = 'PNG'; sc.render.filepath = path
# AgX would wash the crimson toward brick (docs/VISUAL-STYLE.md)
sc.view_settings.view_transform = 'Standard'
diff --git a/docs/gallery/turntable/index.html b/docs/gallery/turntable/index.html
index eaf719e1..c4424873 100644
--- a/docs/gallery/turntable/index.html
+++ b/docs/gallery/turntable/index.html
@@ -421,6 +421,9 @@ Source
# arbitrary turntable frame can land face-away and read as broken geometry.
sc.frame_set(4)
sc.render.resolution_x = 1280; sc.render.resolution_y = 720
+ # Blender resolves a relative filepath against the blend-file directory, which
+ # for a --background run with no .blend is the drive root, not the cwd.
+ path = os.path.abspath(path)
sc.render.image_settings.file_format = 'PNG'; sc.render.filepath = path
# AgX would wash the copper toward beige (docs/VISUAL-STYLE.md)
sc.view_settings.view_transform = 'Standard'
diff --git a/examples/damped-track-aim/damped_track_aim.py b/examples/damped-track-aim/damped_track_aim.py
index 49c917ad..3358e4d8 100644
--- a/examples/damped-track-aim/damped_track_aim.py
+++ b/examples/damped-track-aim/damped_track_aim.py
@@ -367,6 +367,9 @@ def light(name, loc, energy, size, col):
scene.view_settings.view_transform = "Filmic"
scene.view_settings.look = "Medium High Contrast"
scene.render.image_settings.file_format = "PNG"
+ # Blender resolves a relative filepath against the blend-file directory, which
+ # for a --background run with no .blend is the drive root, not the cwd.
+ path = os.path.abspath(path)
scene.render.filepath = path
bpy.ops.render.render(write_still=True)
return os.path.exists(path) and os.path.getsize(path) > 0
diff --git a/examples/gn-sdf-remesh/gn_sdf_remesh.py b/examples/gn-sdf-remesh/gn_sdf_remesh.py
index 76451fe3..627b0b9f 100644
--- a/examples/gn-sdf-remesh/gn_sdf_remesh.py
+++ b/examples/gn-sdf-remesh/gn_sdf_remesh.py
@@ -98,6 +98,9 @@ def render_still(obj, path, engine):
try: sc.eevee.taa_render_samples = 64
except Exception: pass
sc.render.resolution_x = 1280; sc.render.resolution_y = 720
+ # Blender resolves a relative filepath against the blend-file directory, which
+ # for a --background run with no .blend is the drive root, not the cwd.
+ path = os.path.abspath(path)
sc.render.image_settings.file_format = 'PNG'; sc.render.filepath = path
# AgX would wash the crimson toward brick (docs/VISUAL-STYLE.md)
sc.view_settings.view_transform = 'Standard'
diff --git a/examples/turntable/turntable.py b/examples/turntable/turntable.py
index 788e4f59..7ea4e4c7 100644
--- a/examples/turntable/turntable.py
+++ b/examples/turntable/turntable.py
@@ -117,6 +117,9 @@ def render_still(obj, path, engine):
# arbitrary turntable frame can land face-away and read as broken geometry.
sc.frame_set(4)
sc.render.resolution_x = 1280; sc.render.resolution_y = 720
+ # Blender resolves a relative filepath against the blend-file directory, which
+ # for a --background run with no .blend is the drive root, not the cwd.
+ path = os.path.abspath(path)
sc.render.image_settings.file_format = 'PNG'; sc.render.filepath = path
# AgX would wash the copper toward beige (docs/VISUAL-STYLE.md)
sc.view_settings.view_transform = 'Standard'