Tutorial: Add a thumbnail to you 3mf files
If you didn't know it yet, you can add a thumbnail to your 3mf files (PrusaSlicer project files).
File explorer with appropriate support will show a preview of the project instead of the file icon.
First, you need to prepare a preview image. A 512x512 PNG will be perfect, but any quadratic PNG or JPEG file will work. Name it "thumbnail.(png|jpeg)".
Next, unzip your 3mf file. Yes, you can unzip them. Maybe you need to replace the .3mf extension with .zip.
Inside the file, you will find a "_rels", a "3D" and "Metadata" directory and the "[Content_Types].xml" file. Put the thumbnail file inside the "Metadata" directory.
Now we need to edit two files. I use VS Code as my text editor.
At the moment the "[Content_Types].xml" will look like:
We need to add two lines:
(replace the "png" with "jpeg" if you use jpeg format)
Similar thing for "_rels/.rels". It will first look like:
And we need to add one line:
(again, replace the "png" with "jpeg" if you use jpeg format)
Zip the project and make sure that the four previously mentioned elements are back in the root of the zip file. Now, you can rename the file back to .3mf. If you have a compatiple file explorer (like Windows 10) you will immediately see your thumbnail.
RE: Tutorial: Add a thumbnail to you 3mf files
I wonder if automatically adding a thumbnail could/should be added to PrusaSlicer's output options (or preferences, not sure which is better). Otherwise, once one saves from PrusaSlicer isn't all the above work is lost?
Also, please define what you mean by a "quadratic" PNG or JPEG for those of us who aren't in the know. 😉
See my (limited) designs on:
Printables - https://www.printables.com/@Sembazuru
Thingiverse - https://www.thingiverse.com/Sembazuru/designs
RE: Tutorial: Add a thumbnail to you 3mf files
Also, please define what you mean by a "quadratic" PNG or JPEG for those of us who aren't in the know. 😉
Quadratic or square. Same height as width.
RE: Tutorial: Add a thumbnail to you 3mf files
Also, please define what you mean by a "quadratic" PNG or JPEG for those of us who aren't in the know. 😉
Quadratic or square. Same height as width.
Ah, ok. I didn't know if it was that or if power of 2 or what. (Your example qualified for both. 😉) I was also wondering if it some how related to quadratic equations... Just a term usage I'm unfamiliar with.
See my (limited) designs on:
Printables - https://www.printables.com/@Sembazuru
Thingiverse - https://www.thingiverse.com/Sembazuru/designs
RE: Tutorial: Add a thumbnail to you 3mf files
Otherwise, once one saves from PrusaSlicer isn't all the above work is lost?
True. I opened an issue about this.
At the moment this modification would only make sense just before uploading the project to a platform.