Sha256: 5051e760265681c11be0f27158c81a1db9ff46ec97c47bf3e8abd39387b5d8f1

Contents?: true

Size: 806 Bytes

Versions: 26

Compression:

Stored size: 806 Bytes

Contents

class Image < ActiveRecord::Base

  acts_as_phocodable :thumbnail_class => "ImageThumbnail", 
    :thumbnails => [
      {:label=>"small",:width=>100,:height=>100 },
      {:label=>"medium",:width=>400,:height=>400, 
        :frame=>{ :width=>20, :bottom=>50, :color=>'003' }, 
        :annotations=>[
                        {:text=>"Annotation Testing",:pointsize=>30,:fill_color=>'fff',:gravity=>"South",:y=>10},
                        {:text=>"Howdy!",:pointsize=>10,:fill_color=>'ccc',:gravity=>"North",:y=>5}
                      ] 
      }
    ],
    
    :videos => [ {:label => 'mp4',:video_codec=>"h264" }, #, :thumbnails=>{ :number=>1, :start_at_first_frame=>1 } 
                 {:label => 'webm', :video_codec=>"vp8" },
                 {:label => 'ogv', :video_codec=>"theora" }
    ]

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
phocoder-rails-0.0.58 spec/dummy/app/models/image.rb
phocoder-rails-0.0.57 spec/dummy/app/models/image.rb
phocoder-rails-0.0.56 spec/dummy/app/models/image.rb
phocoder-rails-0.0.55 spec/dummy/app/models/image.rb
phocoder-rails-0.0.54 spec/dummy/app/models/image.rb
phocoder-rails-0.0.53 spec/dummy/app/models/image.rb
phocoder-rails-0.0.52 spec/dummy/app/models/image.rb
phocoder-rails-0.0.51 spec/dummy/app/models/image.rb
phocoder-rails-0.0.50 spec/dummy/app/models/image.rb
phocoder-rails-0.0.49 spec/dummy/app/models/image.rb
phocoder-rails-0.0.48 spec/dummy/app/models/image.rb
phocoder-rails-0.0.47 spec/dummy/app/models/image.rb
phocoder-rails-0.0.46 spec/dummy/app/models/image.rb
phocoder-rails-0.0.45 spec/dummy/app/models/image.rb
phocoder-rails-0.0.44 spec/dummy/app/models/image.rb
phocoder-rails-0.0.43 spec/dummy/app/models/image.rb
phocoder-rails-0.0.42 spec/dummy/app/models/image.rb
phocoder-rails-0.0.41 spec/dummy/app/models/image.rb
phocoder-rails-0.0.40 spec/dummy/app/models/image.rb
phocoder-rails-0.0.39 spec/dummy/app/models/image.rb