I recently installed Kiwitrees 3.3.8 on an iMac using XAMPP as a local server. Transferred over 1,000 media items to the /XAMPP/xamppfiles/htdocs/kiwitrees/data/media/ directory. I then imported a GEDCOM file with the paths to media files removed, expecting that they would be linked to images residing in /data/media/ directory. However, all images were classified as Unused, thus requiring me to link (Create) the media items to individuals one at a time. Am I doing something wrong or is what I’m trying to do not possible? Family tree created from GEDCM runs fine, only without media showing up. Thanks for your help.
The paths to the media files you removed are exactly what connects the media files to the GEDCOM data. SO without them, naturally the files become “Unused”.
In all kiwitrees installations media is stored in the /data/ folder. Within that it “might” be different (but yours at kiwitrees.net isn’t). So, providing you don’t change the defaults, which are to store media in the /media/ folder (which is also true for your online site) then you don’t need to change or remove anything from the GEDCOM when you move it, or start a local copy.
So, to put it simply, you are over-thinking the issue.
Re-export your GEDCOM file. Change nothing else. Leave your local media where you have put it. Then re-import it into your local site. Everything should now work as normal.