martygrant / photobooth

Raspberry Pi powered photobooth for parties and events.
0 stars 1 forks source link

File naming scheme #6

Closed martygrant closed 4 years ago

martygrant commented 4 years ago

Currently photos are saved like "photobooth_original/polaroid-date+time.jpg". The intention is the same photo saved as original and polaroid style will have the same filename with only "photobooth_original..." and "photobooth_polaroid..." being different. It's possible they would be saved during different minutes so maybe a basic counter is better like in ordinary cameras e.g "photobooth_3_original/polaroid..".

In doing that if the photobooth is restarted and the count is reset then we would overwrite images taken earlier.

martygrant commented 4 years ago

Resolved in d7244ba195f7190131a9b6aab3e2f3efe43f0db5. Calling command to generate date and time string once instead of twice so we definitely have the same time/date for both the original and stylised/polaroid photo.