I would like to retrieve
.blend file thumbnails without using Blender at all, just plain old python3.
Also if it would be possible to explain how the
.blend file works and how the process of retrieving the thumbnail works?
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
Yes, this is possible and infact has been done already,
the script to do this comes bundled with Blender: see blender-thumbnailer.py.
This Python script runs without Blender, eg extracting a PNG image from
blender-thumbnailer.py /input/my.blend /output/thumb.png
To extract the thumbnail from a
.blend file you have to use a basic
.blend file parser, however - this is written in such a way that its quite simple to extract the data without having to understand the entire blend file format, instead - you only need to read one of the serialized
BHead blocks. (See link above).
blender-thumbnailer.py as a reference: writing this in another programming language, or saving as a different image format should not be a very big task.