惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
博客园 - Franky
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog
爱范儿
爱范儿
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)

Danb Blog

August 2026: What I've Been Working On · Danb Blog Great Tech: Intel 2500k CPU · Danb Blog July 2026: What I've Been Working On · Danb Blog My Experience with Ubuntu Desktop 26.04 · Danb Blog Cheaper Sodastream Gas with a Big Tank · Danb Blog June 2026: What I've Been Working On · Danb Blog Running Snyk On Forgejo/Codeberg Actions · Danb Blog Tuta & Proton: An Open Source Client Does Not Result in an Open Source Service · Danb Blog May 2026: What I've Been Working On · Danb Blog 3D Printing Parts for my Greenhouse, Round 2 · Danb Blog Great Devices: Nexus 7 2013 · Danb Blog R36S Console RetroArch Stuck Menu Issue · Danb Blog April 2026: What I've Been Working On · Danb Blog Basic OpenCode Sandboxing with Docker · Danb Blog Games Played in 2025 · Danb Blog March 2026: What I've Been Working On · Danb Blog Shivam Mathur's "node-docker" Images are Awesome for PHP CI · Danb Blog February 2026: What I've Been Working On · Danb Blog Your BookStackApp project was assigned as a project for my Software Architecture course · Danb Blog My Sovol SV08 3D Printer Setup in 2026 · Danb Blog January 2026: What I've Been Working On · Danb Blog Epson Printer: The administrator password you entered was not recognized · Danb Blog Pressure to Follow Process · Danb Blog Online Shopping Email Notifications · Danb Blog My HomeLab Setup in 2026 · Danb Blog Linux Label Printing with the Phomemo D30 · Danb Blog Reporting to the CMA: Google Android Developer Verification · Danb Blog OPNsense & Dnsmasq: Responding with specific DNS servers · Danb Blog An Impromptu Introduction to ZFS Drive Replacement at 1am · Danb Blog Experience with UK Medical Cannabis for Ankylosing Spondylitis · Danb Blog
Thumbnails for Orca 3MF in GNOME Files · Danb Blog
2026-07-19 · via Danb Blog

I wanted to have previews for 3MF files in GNOME files (nautilus). I came across this project by Rui Carmo which smartly used a simple Python script to extract the existing thumbnail from a 3MF file, but this didn’t work with my Orca Slicer created files.

A simple modification to the 3mf_thumbnailer file helps to search for various thumbnails inside the 3MF, and specifically I’ve set it to look for plate_1.png which Orca Slicer seems to set. Here’s the script:

#!/usr/bin/python3

# Modified from https://github.com/rcarmo/gnome-thumbnailers
# Original Copyright (c) 2022 Rui Carmo - MIT License

from sys import argv
from zipfile import ZipFile

THUMBNAIL_FILENAMES = [
    'Metadata/thumbnail.png',
    'Metadata/plate_1.png',
]

with ZipFile(argv[1], 'r') as zip:
    names = zip.namelist()
    for filename in THUMBNAIL_FILENAMES:
        if filename in names:
            thumbnail = zip.read(filename)
            with open(argv[2], 'wb') as f:
                f.write(thumbnail)
            break

To summarize the full steps (taken from here) of using this:

  • Create a file at /usr/share/thumbnailers/3mf.thumbnailer with the following contents:
[Thumbnailer Entry]
Exec=/usr/local/bin/3mf_thumbnailer %i %o
MimeType=application/vnd.ms-3mfdocument;model/3mf;
  • Create a /usr/local/bin/3mf_thumbnailer file, and use the above Python code as its contents.
  • Ensure it’s made executable (sudo chmod +x /usr/local/bin/3mf_thumbnailer).
  • Delete cached thumbnails (rm -rf ~/.cache/thumbnails/*)
  • Restart nautilus (nautilus -q)