porkbuns / shmile

The DIY photobooth, at your service.
75 stars 39 forks source link

Cannot change directories to save files #43

Open clanger81 opened 7 years ago

clanger81 commented 7 years ago

I'm not sure if anyone has had success with this previously but I've tried using symbolic links and changing the directories in the /lib coffee scripts and have found that it will only write "tmpfilexxxxxx" files rather than provide the correct filenames hence breaking the remainder of the program when it goes to resize and composit. Not sure if I'm overlooking a directory location or if it's a file system problem (trying to write to fat32 usb key) but any advice would be great.

jovak89 commented 6 years ago

if you want to change directory where the files are saved, its easy - just change the image_compositor.coffee in the lib folder - especially the line which says output_dir: "public/photos/generated"

If the new folder is outside the program folder, please use a slash (/) upfront. Im storing my pictures safely on a USB drive instead. Makes life easier. Without slah it will crash the conversion.

andrewhao commented 6 years ago

If someone wants to fix this and make this an environment variable, please be my guest!