Trip sorter
Tool to organize chronological set of photos and other multimedia content, e.g. video, audio recordings, and intertwine them with HTML cards.
Motivation
This was done to organize photos taken during https://shonan.nii.ac.jp/seminars/228/ and provide a more complete view of the trip.
Now that the desktop version works and has proven useful other interfaces can be used, e.g. XR or mobile.
Features
This does not aim at being a photo editor or viewer but rather sorter. The goal is to organize FAST a large dataset of photograhies in order to showcase the resulting content to an audience.
The sorting itself is actually assumed to be mostly correct, namely the images are collected using e.g. ls *jpg > data.json and viewed in that order. It can manually be edited to swap images or move some kind of content to the back of the front but overall the order is correct.
The typical usage is to go through the list then decide to either skip or favorite, then repeat. This assumes that for example a dozen photos of a single place or perspective will be taken but only one can be shown, thus all others can be skipped.
Default view with j/k bindings
Marking an image as favorite with i binding
Tagging an image with m,./ bindings
Tagged images in dedicated buckets
Fullscreen mode for presentation
Audio track
Data structures
There are 2 main data structures :
- data is the main one, it is an array of content, typically photographies sorted chronologically. The filename is used to group by day or sort by type of content
- metadata is an associative array or object which key is the filename and metadata are booleans favorite, skip and an a tag array
Potentially
- key bindings is not a structure proper yet but could become one in order to match the work done for Shonan and allow the user to rebind and have live documentation
- cards also are added via code but could become an array instead
Fine control via HTML cards
Examples :
addCardAfterFilename( './IMG_20261010_175431_451.jpg' , "\show Demoire set\\" )
addCardBeforeFilename( getFirstFilenameDay( 12 ) , "\show mot+ documents and performance CD (gifts from there)\" )
addCardBeforeFilename( getFirstFilenameDay( 13 ) , "\show ryokan menu\" )
addCardAfterFilename( getLastFilenameDay( 16 ), "\That's all folks! \domo arigato\" )
Markdown scaping HTML can be tricky so check out the code iteslf instead https://git.benetou.fr/utopiah/trip-sorter/src/branch/main/index.html#L475





