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

Instance Method Details

#cmdObject

ImageMagick command



9
10
11
# File 'lib/vidibus/fileinfo/processor/image.rb', line 9

def cmd
  %Q(identify -verbose "#{@path}")
end

#outputObject



13
14
15
# File 'lib/vidibus/fileinfo/processor/image.rb', line 13

def output
  "stdout"
end

#validateObject



17
18
19
# File 'lib/vidibus/fileinfo/processor/image.rb', line 17

def validate
  %w[height width]
end