Module: Vidibus::Fileinfo::Processor::Image
- Defined in:
- lib/vidibus/fileinfo/processor/image.rb
Constant Summary collapse
- FORMATS =
%w[jpg jpeg png gif]
- METADATA =
%w[bit content_type height orientation quality size width]
Instance Method Summary collapse
-
#cmd ⇒ Object
ImageMagick command.
- #output ⇒ Object
- #validate ⇒ Object
Instance Method Details
#cmd ⇒ Object
ImageMagick command
9 10 11 |
# File 'lib/vidibus/fileinfo/processor/image.rb', line 9 def cmd %Q(identify -verbose "#{@path}") end |
#output ⇒ Object
13 14 15 |
# File 'lib/vidibus/fileinfo/processor/image.rb', line 13 def output "stdout" end |
#validate ⇒ Object
17 18 19 |
# File 'lib/vidibus/fileinfo/processor/image.rb', line 17 def validate %w[height width] end |