GithubHelp home page GithubHelp logo

cpopescu69 / photosort Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pedroduartecosta/photosort

0.0 0.0 0.0 12 KB

A small program written in Golang to recursively organize your photo library by copying and sorting photos by year and month from a source to a dest folder.

Go 100.00%

photosort's Introduction

photosort

A small program written in Golang to copy and sort photos by year and month for a source to a dest folder.

This is my first attempt at the go language. Feel free to improve it through pull requests!

Important: This has only been tested on Windows 10, let me know how it behaves in other OS.

Functionality

  • Recursively visits all files and folders in the srcFolder directoy tree
  • Analyses if files have Exif date information
  • If so it copies the media file to the corresponding folder in the destfolder, creating the necessary folders such as Year and Month
  • If the file is a media file but has no information regarding the capture date, it copies the file into a folder called Others in the destination folder
  • It ignores any duplicated file or non media files

Media files supported

.tiff .tif .gif .jpeg .jpg .png .raw .webm .mkv .avi .mov .wmv .mp4 .MP4 .m4v .mpg .mp2 .mpeg

Build

go get github.com/rwcarlsen/goexif/exif
go build photosort.go errors.go

Run

./photosort --source-folder [srcFolder] --destination-folder [destFolder]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.