Skip to content

`sort-ios-images` takes an input directory and detects all images or videos which were taken with your own iPhone.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

denisbrodbeck/sort-ios-images

Repository files navigation

sort ios images

Builds MIT Licensed Apache2 Licensed

The cli app sort-ios-images takes an input directory and detects all images or videos which were taken with your own iPhone. All detected items get copied to a output directory. All other files get copied into a 'nomatch' directory. Folder structure of input directory will be preserved. Cross-plattform. Written in Rust.

CLI usage

# Sort your images from `input` directory and copy them into `output` directory
sort-ios-images ~/ferris/images/ios-imported ~/ferris/images/ios-sorted

# Sort your images from `input` directory and move them into `output` directory -- really fast
sort-ios-images --move-files ~/ferris/images/ios-imported ~/ferris/images/ios-sorted

All available flags:

USAGE:
    sort-ios-images [FLAGS] <input> <output>

FLAGS:
    -h, --help          Prints help information
    -m, --move-files    Move sorted files instead of copying them
    -V, --version       Prints version information

ARGS:
    <input>     Input directory
    <output>    Output directory

Output Layout

After running sort-ios-images your output directory will contain two directories: match and nomatch

  • match contains all images or videos which were taken with your iPhone.
  • nomatch contains everything else, like movies or images received via messengers or saved items

Given ~/ferris/images/ios-imported as input directory:

~/ferris/images/ios-imported/2019-02/IMG_3433.JPEG # you shot this
~/ferris/images/ios-imported/2019-02/IMG_3434.JPEG # you shot this
~/ferris/images/ios-imported/2019-02/IMG_3435.JPEG # you shot this
~/ferris/images/ios-imported/2019-02/LOHG2296.JPG  # you got this
~/ferris/images/ios-imported/2018-11/IMG_2155.JPEG # you shot this
~/ferris/images/ios-imported/2018-11/IMG_2156.MOV  # you shot this
~/ferris/images/ios-imported/2018-11/IMG_2157.JPEG # you shot this
~/ferris/images/ios-imported/2018-11/MYRR9748.JPG  # you got this

sort-ios-images will produce this layout in ~/ferris/images/ios-sorted output directory:

~/ferris/images/ios-sorted/match/2019-02/IMG_3433.JPEG # you shot this
~/ferris/images/ios-sorted/match/2019-02/IMG_3434.JPEG # you shot this
~/ferris/images/ios-sorted/match/2019-02/IMG_3435.JPEG # you shot this
~/ferris/images/ios-sorted/match/2018-11/IMG_2155.JPEG # you shot this
~/ferris/images/ios-sorted/match/2018-11/IMG_2156.MOV  # you shot this
~/ferris/images/ios-sorted/match/2018-11/IMG_2157.JPEG # you shot this

~/ferris/images/ios-sorted/nomatch/2019-02/LOHG2296.JPG  # you got this
~/ferris/images/ios-sorted/nomatch/2018-11/MYRR9748.JPG  # you got this

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

`sort-ios-images` takes an input directory and detects all images or videos which were taken with your own iPhone.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Languages