updated readme with info about carrierwave
This commit is contained in:
parent
bf8d3a0f89
commit
24f2374cae
3 changed files with 11 additions and 26 deletions
20
README
20
README
|
@ -2,11 +2,13 @@
|
||||||
|
|
||||||
Made by Espen Antonsen.
|
Made by Espen Antonsen.
|
||||||
|
|
||||||
|
Version 1.1
|
||||||
|
|
||||||
http://balderapp.com
|
http://balderapp.com
|
||||||
|
|
||||||
== Features
|
== Features
|
||||||
|
|
||||||
* Stores photos to disk in folders
|
* Stores photos to disk in folders or on S3
|
||||||
* Create multiple thumbnails of custom sizes
|
* Create multiple thumbnails of custom sizes
|
||||||
* Read and writes EXIF/IPTC title, description and keywords
|
* Read and writes EXIF/IPTC title, description and keywords
|
||||||
* Organize in albums (as events in iPhoto)
|
* Organize in albums (as events in iPhoto)
|
||||||
|
@ -20,26 +22,22 @@ http://balderapp.com
|
||||||
|
|
||||||
Free for personal use. Contact me for commercial license.
|
Free for personal use. Contact me for commercial license.
|
||||||
|
|
||||||
== Todo
|
|
||||||
|
|
||||||
* Theme support?
|
|
||||||
* Multiple galleries?
|
|
||||||
* Support for ImageMagick in addition to FreeImage?
|
|
||||||
|
|
||||||
== Requirements
|
== Requirements
|
||||||
|
|
||||||
Rails 2.3
|
Rails 2.3
|
||||||
|
|
||||||
Software
|
Software
|
||||||
- FreeImage (required for Image_Science)
|
- RMagicK (required for Carrierwave resizing). Can also use ImageScience
|
||||||
|
Optional:
|
||||||
- ExifTool (required for Mini_EfixTool)
|
- ExifTool (required for Mini_EfixTool)
|
||||||
|
|
||||||
Ruby Gems
|
Ruby Gems
|
||||||
- AuthLogic
|
- AuthLogic
|
||||||
- Mime-Types
|
- Mime-Types
|
||||||
- Image_Science
|
- Carrierwave
|
||||||
- RubyInline (required for Image_Science)
|
Optional:
|
||||||
- Mini_ExifTool
|
- AWS/S3 (if saving to Amazon s3)
|
||||||
|
- Mini_Exiftool (to read exif info to database. See photo.rb model)
|
||||||
|
|
||||||
== Installation
|
== Installation
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
#require "image_science"
|
|
||||||
require 'mini_exiftool'
|
|
||||||
|
|
||||||
class Photo < ActiveRecord::Base
|
class Photo < ActiveRecord::Base
|
||||||
belongs_to :album
|
belongs_to :album
|
||||||
has_many :photo_tags, :dependent => :destroy
|
has_many :photo_tags, :dependent => :destroy
|
||||||
|
@ -53,14 +50,6 @@ class Photo < ActiveRecord::Base
|
||||||
self.tags = ts
|
self.tags = ts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def exif_info
|
|
||||||
photo = MiniExiftool.new(self.file.path)
|
|
||||||
#photo.tags.sort.each do |tag|
|
|
||||||
# puts tag.ljust(28) + photo[tag].to_s
|
|
||||||
#end
|
|
||||||
end
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,8 @@ Rails::Initializer.run do |config|
|
||||||
|
|
||||||
config.gem "authlogic"
|
config.gem "authlogic"
|
||||||
config.gem 'mime-types', :lib => 'mime/types'
|
config.gem 'mime-types', :lib => 'mime/types'
|
||||||
#config.gem "image_science"
|
|
||||||
#config.gem "mini_exiftool"
|
|
||||||
#
|
|
||||||
config.gem "carrierwave"
|
config.gem "carrierwave"
|
||||||
|
#config.gem "mini_exiftool"
|
||||||
#config.gem "aws-s3", :lib => "aws/s3"
|
#config.gem "aws-s3", :lib => "aws/s3"
|
||||||
|
|
||||||
config.load_paths += %W( #{RAILS_ROOT}/app/middleware )
|
config.load_paths += %W( #{RAILS_ROOT}/app/middleware )
|
||||||
|
|
Loading…
Reference in a new issue