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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Recent Announcements
Recent Announcements
Jina AI
Jina AI
G
Google Developers Blog
腾讯CDC
博客园_首页
博客园 - 【当耐特】

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)