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.38 spec/dummy/app/models/image.rb
phocoder-rails-0.0.37 spec/dummy/app/models/image.rb
phocoder-rails-0.0.36 spec/dummy/app/models/image.rb
phocoder-rails-0.0.35 spec/dummy/app/models/image.rb
phocoder-rails-0.0.34 spec/dummy/app/models/image.rb
phocoder-rails-0.0.33 spec/dummy/app/models/image.rb