Giter VIP home page Giter VIP logo

thumbhost3mf's Introduction

ThumbHost3mf

A macOS app that hosts a thumbnail provider that makes the Finder displays the thumbnails built in to some .gcode, .bgcode, and .3mf files.

I got tired of my gcode and 3mf files looking like

when they could look like this:

IMPORTANT:

  • macOS requires that apps that host Quicklook plugins, like ThumbHost3MF, MUST be in /Applications or one of its subdirectories for the Quicklook plugin to function correctly! Note this is the actual /Application directory, and not an Application directory inside your home directory.

To Install:

  • Download and run the ThumbHost3MF app. If you don't want to compile it yourself, grab the compiled code from Releases

  • Use ThumbHost3MF's File > Open menu item and point at a directory containing .gcode or .3mf files: that will kick the Finder into noticing the enbedded thumbnail presenter.

  • To compile it yourself, use your team and domain name. I uploaded this as com.example, but in the release I signed it with my team and domain name.

To get previews in your GCode files, in PrusaSlicer, in Printer Settings, set the thumbnail size to something reasonable. (I use 128x128, but you may need other sizes.)

This will cause PrusaSlicer to append a base64-encoded 128x128 .png image of the gcode to near the start of the gcode file.

  • You may need to use ThumbHost3MF's Open command to let the Finder know that it has a thumbnail provider.

  • You may find that the Finder has made ThumbHost3MF the default app for .3mf and .gcode files. If that happens, in Finder, do a Get Info any .3mf and .gcode file and set the default app to what you wish.

  • Not all .3mf files have an included thumbnail. I'm using those that, when unzipped, have a Metadata/thumbnail.png or .jpg. Most .3mf files created in 2021 or later do.

  • In the Original Prusa Drivers 2.5.0 distribution, in the Sample Objects subdirectory, the MK3_MK3S_MK3S+/3MF folder has .3mf files with embedded thumbnails, but the MINI_MINI+/3MF files do not.

If you open the MINI_MINI+/3MF files and Save them, PrusaSlicer adds the thumbnails.

I'm posting this to get early feedback. In an ideal world, the thumbnail provider would be inside the PrusaSlicer app and this app would not be necessary. If this app does not break the world, I'll work on submitting a pull request on PrusaSlicer.

Other

1/15/2024 is the day I learned that https://github.com/jkavalik/GcodeThumbnailExtension makes .gcode icons visible on Microsoft Windows. I haven't tried it so I can't comment on quality.

Versions

  • Version original 1.0 only handle gcode files, and only png and jpg thumbnails.

  • Version 1.2 handles those and also bgcode files, and qoi thumbnails.

  • Version 1.3 sets the mimimum compatible version of macOS to OS X 10.15, Catalina from 2019, but still works through macOS Sonoma, 14.2.1, 2023. OS X 10.15 is the earliest because the embedded QuickLook plugin inherits from a class in the QuicklookThumbnailing framework that was introduced then.

  • Version 1.4 extends this to also handle thumbnails inside Bambu Studio or Orca Slicer

License

Apache 2 License

thumbhost3mf's People

Contributors

davidphilliposter avatar kaisamng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kaisamng sonywork

thumbhost3mf's Issues

Provide UI to control whether thumbnails have text superimposed

         … would it be possible to turn off the green 3MF and red GCODE text? Could be a setting in preferences if some people like having the text. I know if I clicked on a .3MF or a .gcode file and I would rather not have the text cover up the object I want to see. Thank you for your consideration. I feel the same way about the folded-over corner, too.

Originally posted by @alsmithson in #5 (comment)

Quicklook support

STL files render in osx finder with the ability to rotate and inspect the design, it would be amazing if this would allow the same for 3mf files

Thanks

Cant get it to work with 3mf files

Installed per instructions on Sonoma 14.1.2. Works great with gcode and bgcode files but can't get it to show 3mf files. Attached is a simple cube, directly saved from PS 2.7.0.
test.3mf.zip

I tried Open With but ThumbMF3 is grayed out and cannot be selected.

Thumbnails not working in Finder search results

Firstly, thank you for an awesome tool. Just what I was looking for.

Unfortunately there is one issue that I have found. While this does show the thumbnails in regular Finder views, it does not show them in the Finder search results. Instead, all I have there is the "zip" icon.

Reproduce:

  1. Go to Finder.
  2. In search bar type 3mf and click on "name contains"
  3. See results only show zip file icon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.