Blender V5.3
blender_thumbnailer.cc File Reference
#include <iostream>
#include <optional>
#include <fcntl.h>
#include <unistd.h>
#include "BLI_fileops.hh"
#include "BLI_filereader.hh"
#include "BLI_vector.hh"
#include "blendthumb.hh"

Go to the source code of this file.

Functions

static eThumbStatus extract_png_from_blend_file (const char *src_blend, const char *dst_png)
int main (int argc, char *argv[])

Detailed Description

This file defines the thumbnail generation command (typically used on UNIX).

To run automatically with a file manager such as Nautilus, save this file in a directory that is listed in PATH environment variable, and create blender.thumbnailer file in ${HOME}/.local/share/thumbnailers/ directory with the following contents:

[Thumbnailer Entry]
TryExec=blender-thumbnailer
Exec=blender-thumbnailer %u %o
MimeType=application/x-blender;
BMesh Iterators.

Definition in file blender_thumbnailer.cc.

Function Documentation

◆ extract_png_from_blend_file()

eThumbStatus extract_png_from_blend_file ( const char * src_blend,
const char * dst_png )
static

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 92 of file blender_thumbnailer.cc.

References extract_png_from_blend_file(), main, and blender::ret.