My own Photo Library
The intention of this is to have a photo library machine that goes through multiple messy folders of images and organizes them and write the organization back to the folder structure and the images exif-data.
- Image deduplication (currently only identifies via hash)
- Thumbnail generation
- Write modified exif-data back to files
- Re-organization of images into folder structures based on user sorting
... and more, you can follow the status on the project pane
This is mainly a rails app with a rake task. If you need help to get started, see the heading Get started below.
bundle exec phobrary:scan
bundle exec rails server
Then point your browser to http://localhost:3000 and enjoy!.
Clone this repo to your computer using your terminal emulator like so:
cd ; mkdir -p `gitstuff`; cd gitstuff
git clone https://github.com/StefanWallin/phobrary.git
cd phobrary
First you need to make sure you have the required libraries:
brew install shared-mime-info
brew install readline # Maybe?
brew install dns-sd # Probably!?
Install ruby version listed in the file .ruby-version
. I recommend using the rbenv
tool for that. After installing rbenv
and rbenv-build
it can be done like this:
rbenv install `cat .ruby-version`
To get this app running you need to install bundler to manage your dependencies. You can do this from your terminal with this command:
gem install bundler
Then, run this command in your terminal so bundler can install the needed dependency libraries:
bundle install
This software needs a postgresql database setup. You can search the internet for how to do this. If you are on a Mac, I recommend using homebrew to install postgres. Once your database is installed you need to have a postgres user setup, that can be done like so:
sudo -u postgres psql
CREATE USER phobrary WITH ENCRYPTED PASSWORD 'phobrary123';
GRANT ALL PRIVILEGES ON DATABASE phobrary_development TO phobrary;
GRANT ALL PRIVILEGES ON DATABASE phobrary_test TO phobrary;
Then hit ctrl+d
to exit the psql prompt
bundle exec rails db:setup
bundle exec rspec