Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
themanyone committed May 7, 2023
1 parent cd25c9b commit 5020f4c
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,15 @@ LIBS=-L/home/k/Downloads/src/lib3mf/Lib mingw64-make

Now copy the resulting `3mfthumb.exe` along with `lib3mf.dll` to the Windows machine.

Thumbnailers can be configured on Windows using the registry editor, `regedit`.
In theory, we can use `regedit` to designate 3mfthumb.exe as the preferred handler to generate image previews for .3mf files. ChatGPT suggested something similar to the following. If it doesn't work, you can ask ChatGPT or Bing to fix it up.

Yes, you can set your thumbnail image extractor to be the default thumbnail image generator for .3mf files in Windows by creating a registry entry that associates your program with the .3mf file extension.
1. Open the Registry Editor by typing "regedit" in the Windows search bar and selecting "Registry Editor".
2. Navigate to HKEY_CLASSES_ROOT\.3mf.
3. Right-click on something like "ThumbnailHandler" and select "Modify".
4. Set the value data to the full path of 3mfthumb.exe (e.g. "C:\path\to\3mfthumb.exe") and click "OK".
5. Close the Registry Editor.

Here are the steps you can follow to create this registry entry:

1. Open the Windows Registry Editor by typing "regedit" in the Start menu search box and pressing Enter.

2. Navigate to the following registry key: HKEY_CLASSES_ROOT\.3mf

3. If there is no "Default" value in this key, create one by right-clicking on the right-hand pane, selecting "New > String Value", and naming the value "Default".

4. Set the value of the "Default" key to a unique name for your thumbnail generator, such as "3mfthumb.exe".

5. Navigate to the following registry key: `HKEY_CLASSES_ROOT\MyThumbnailGenerator\shell\open\command`

6. Create a new "String Value" named "Default" in the right-hand pane and set its value to the path to `3mfthumb.exe`, followed by the "%1" parameter to pass the filename of the .3mf file being opened. For example:

7. "C:\3mfthumb.exe" "%1"

8. Save and close the Registry Editor.

After making these changes, Windows should use `3mfthumb.exe` to generate thumbnails for `.3mf` files when they are viewed in Explorer or other file managers on Windows.
If it works, when you navigate to a folder containing a .3mf file, Windows should generate a thumbnail using 3mfthumb.exe.

## Issues

Expand Down

0 comments on commit 5020f4c

Please sign in to comment.