Open source Ruby on Rails photo gallery
Find a file
Espen Antonsen 529a96a2a7 yaml fix
2011-04-14 20:41:25 +08:00
app no more iphone layouts 2011-04-14 20:40:58 +08:00
config yaml fix 2011-04-14 20:41:25 +08:00
db need to use path anyway... cannot Photo.file returns base filename - not full path so cannot do Photo.find_by_file(path) 2011-04-11 16:53:07 +08:00
doc initial commit 2009-05-22 14:13:46 +02:00
features and another one.. 2010-09-27 15:19:54 +02:00
lib various changes 2011-04-11 17:17:08 +08:00
public no more iphone layouts 2011-04-14 20:40:58 +08:00
resources/DummyHTML added dummyhtml 2009-06-09 21:38:32 +02:00
script i can haz railz 3 2010-09-17 17:57:33 +02:00
spec acts as permissible 2009-06-05 14:18:03 +02:00
test i can haz railz 3 2010-09-17 17:57:33 +02:00
vendor/plugins brought submodules into the main repo 2011-04-11 18:07:31 +08:00
.gitignore update readme. using sqlite3 as default for dev. minimagick as default processor. reanabled exif read/write 2011-04-11 12:38:53 +08:00
config.ru i can haz railz 3 2010-09-17 17:57:33 +02:00
Gemfile no need for iphone layout. will use css media queries 2011-04-13 16:22:48 +08:00
Gemfile.lock fog, aws not supported any more 2011-04-12 13:01:04 +08:00
LICENSE GNU license 2009-07-31 16:04:56 +02:00
Rakefile i can haz railz 3 2010-09-17 17:57:33 +02:00
README link to heroku setup blogpost 2011-04-11 18:02:22 +08:00

== Welcome to Balder photo gallery

Made by Espen Antonsen.

Version 1.2.0 for Rails3

http://balderapp.com

== Features

* Stores photos to disk in folders or on S3 (can run from Heroku...yay)
* Create multiple thumbnails of custom sizes
* Read and writes EXIF/IPTC title, description and keywords
* Organize in albums (as events in iPhoto)
* Combine albums in collections (as albums in iPhoto)
* Upload multiple photos
* Tag photos. Can also tag albums (actually all photos in album is tagged)
* User management with roles and permissions
* Geo-location of albums & photos with Google Maps integration.

== License

Free for personal use. Contact me for commercial license.

== Requirements

Rails 3.0

Software
- ImageMagicK (required for Carrierwave resizing). Can also use ImageScience and MiniMagick
- ExifTool (required for Mini_EfixTool). Can be disabled.

Ruby Gems
- AuthLogic
- Mime-Types
- Carrierwave
- Mini_Exiftool (to read exif info to database and write exif to original file. See photo.rb model). Can be disabled.
Optional:
	- AWS/S3 (if saving to Amazon s3)
	
	
== Configuration

config/balder.rb has the following adjustable settings:

STORAGE_PATH	Relative path to where the photos are stored. Default: uploads
				Under the specified path two folders are used. "files" for original files and "thumbs" for generated thumbnails.
				This can be adjusted in app/uploaders/file_uploader.rb
PRIVATE			Require visitors to have a user and authenticate before viewing photos.
TITLE			Title of site
HEROKU			To be used on heroku.com. This will adjust carrierwave to save to Heroku's tmp area.
S3_KEY			For saving files to Amazon S3 (required for Heroku)
S3_SECRET		For saving files to Amazon S3 (required for Heroku)
S3_BUCKET		For saving files to Amazon S3 (required for Heroku)

As these are environment variables you can easily add them to Heroku:
http://devcenter.heroku.com/articles/config-vars#rack_env_rails_env_merb_env
For a brief introduction to how to set up Balder on Heroku see:
http://blog.inspired.no/rails-photo-gallery-balder-on-heroku-and-s3-726

== Installation

1. Clone the project from GitHub or Gitorious:
	GitHub: git clone git://github.com/espen/balder.git
2. Install required software listed above
3. 'bundle install' to install required gems.
4. Adjust the settings in balder.rb (See configuration above)
5. Copy database file (not needed when hosting on Heroku):
	cp config/database.example.yml config/database.yml
6. Create database user and edit database file. (unless on Heroku or using SQLite3)
7. rake db:create
8. rake db:migrate
9. Start up the project with your preferred web-server

=== Optional: add photos directly to disk

The gallery has a web-based upload tool. Alternatively you can upload files directly by doing this:

Put photos in containing folders(albums) in the specified gallery folder.
Hierarchy of folders is not fully supported.

This format is recommended:

./ski weekend in hemsedal/snow.jpg
./ski weekend in hemsedal/afterski.jpg
./trip to iran/beautiful girls in tehran.jpg
./trip to iran/mosque in yazd.jpg
./trip to iran/powder snow in dizin.jpg

Every time you manually add photos to disk you must scan by visiting /photos/scan or run ScanFiles.Scan(false) from the console.

== Version history

1.2.0
- New storage path: "/uploads/files/" instead of "/uploads/". Make sure you move your photos or adjust the storage path.

== TODO

- Testing...

== Copyright and license info

This code is copyrighted by Espen Antonsen. The source code is available free under the GNU General Public License version 3 (GPLv3).

If the GPLv3 is not suitable for you please contact me for an alternative license for a fee.