Class: SpudPhoto
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SpudPhoto
- Extended by:
- ActionView::Helpers::NumberHelper
- Defined in:
- app/models/spud_photo.rb
Instance Method Summary collapse
Instance Method Details
#dynamic_styles ⇒ Object
28 29 30 31 32 33 34 |
# File 'app/models/spud_photo.rb', line 28 def dynamic_styles admin_styles = { :spud_admin_small => {:geometry => '125x125#', :format => :jpg, :source_file_options => '-density 72', :convert_options => '-strip -quality 85'}, :spud_admin_medium => {:geometry => '300x200', :format => :jpg, :source_file_options => '-density 72', :convert_options => '-strip -quality 85'} } return admin_styles.merge(Spud::Photos.config.photo_styles) end |