Closed Hela-Girl closed 8 months ago
@Hela-Girl - looking at your error, I see you're running mindmd in default mode python mindmd.py
without any switches or inputs . So I assume you modified the settings.cfg
to point to your files. But, I also see that the image filename is definitely missing -> images/12b732dac57***89.png5d4e70f66******6f.png
. The the copyfile command is failing on that.
I've made a change in the code to print out a warning message about any missing images and keep going to finish the conversion. Download the program again (or, just download mindmd.py
) and run your mindmaps again. Be sure to save your current settings.cfg
before downloading the updated program so it doesn't get overwritten.
@Hela-Girl - I just tested the latest Windows 10 version with images and it worked fine. So, I'm assuming it is one of your images that may be the problem in your mindmap.
https://i.imgur.com/zCevgSa.jpg
@Hela-Girl I deleted the link. I really don't appreciate the offensive images in your mindmap. I can't help you if send things like that. I'll look at your suggestions.
@Hela-Girl thx for the new file. I see a few issues already with the script. You use images in a way I don't and I'll fix that.
Happy Holidays !
@Hela-Girl thx! Same to you. Looks like all is fixed now. The 2 errors - bad / missing title and multiple images linked from a node are now working. Again, either just download the mindmd.py
file or download the zip file to a new directory and try it again. I'll add script versions, etc. later.
PS: to have your images at the same level as your .md
files, use this setting:
media_path = /
Please correct these errors.
@Hela-Girl The images/ folder is a temporary working folder for the smmx file un-compression - so you can ignore that folder.
For #1 - you had asked how the images could be in the same directory as the markdown - so that worked
For #2 - using media/
worked for me - the images are in the media folder with no errors
For #3 - that failed - probably a problem with "." in the directory name - that's unusual - I'll look at that
For #4 - you have to set the Obsidian media path and the mindmd settings paths to the same (unless you're using the periods in the directory name).
Be sure you downloaded the fixed version for #1 and #2
Is it possible to get not .md but .canvas as output? Can this be added to the settings?
For #3 - https://i.imgur.com/gYwSici.jpg No, this problem is not due to "."
@Hela-Girl - For #3 the directories have to exist (both the output and the media paths) or it won't work. The script doesn't create them for you at this point. So, for the example:
output_path = 271223/
media_path = media/
Both the directory 271223 and 271223/media have to pre-exist before conversion. Then it works fine.
In your example image, your main output path is appended to your download path:
c:\Users\MaX\Downloads\111\mindmap-markdown-main\markdown
But, your media path has the root directory \
- so the media directory is:
c:\271223
If you want it under markdown
then set media_path = 271223/
without the leading / (or \ for Windows - be sure it exists already)
For Obsidian on Windows , here's what I use:
output_path = C:/Users/d32911/Documents/Obsidian/Inbox/
media_path = ../images/
The ../
will move up one directory to be at the same level as Inbox - C:/Users/d32911/Documents/Obsidian/images/
vs C:/Users/d32911/Documents/Obsidian/Inbox/images/
I'll try now. Is it possible to get not .md but .canvas as output? Can this be added to the settings?
@Hela-Girl - canvas isn't supported yet. That will be in updated versions.
Well I'll wait. Thank you for your help.
@Hela-Girl - Для №3 должны существовать каталоги (как выходные, так и медиа-пути), иначе это не будет работать. На данный момент сценарий не создает их для вас. Итак, для примера:
output_path = 271223/
media_path = media/
перед преобразованием оба каталога 271223 и 271223/media должны существовать. Тогда все работает нормально.В вашем примерном изображении ваш основной выходной путь добавляется к вашему пути загрузки:
c:\Users\MaX\Downloads\111\mindmap-markdown-main\markdown
Но ваш путь к мультимедиа имеет корневой каталог\
, поэтому каталог мультимедиа:c:\271223
Если вы хотите, чтобы он был нижеmarkdown
, установитеmedia_path = 271223/
без начального / (или \ для Windows - уверен, оно уже существует)Для Obsidian в Windows я использую вот что:
output_path = C:/Users/d32911/Documents/Obsidian/Inbox/
media_path = ../images/
переместится../
на один каталог вверх, чтобы оказаться на том же уровне, что и Inbox —C:/Users/d32911/Documents/Obsidian/images/
противC:/Users/d32911/Documents/Obsidian/Inbox/images/
[SETTINGS] input_path = mindmaps/ output_path = markdown/ media_path = 271223/ test_file_name = Rain-game.smmx
[SETTINGS] input_path = mindmaps/ output_path = markdown/ media_path = images/Rain-game/271223/ test_file_name = Rain-game.smmx
Subfolders worked for me - be sure the directories exist.
Your media full path will be:
c:\Users\MaX\Downloads\111\mindmap-markdown-main\markdown\images\Rain-game\271223\
thx, a lot!!!!!!!!!!
Subfolders worked for me - be sure the directories exist. Your media full path will be:
c:\Users\MaX\Downloads\111\mindmap-markdown-main\markdown\images\Rain-game\271223\
thx, a lot!
@Hela-Girl glad it worked out and very glad you've tried the script and found some things to fix!
Спасибо за помощь!!
@Hela-Girl - PS, if you find any other problems - please open issues for those. Thx!
Hello. I did everything according to the instructions, but there were errors when converting files, perhaps the versions do not match? Can I send a file for testing, maybe you have no errors?
https://i.imgur.com/BPBzgzD.jpg