exif.rb
# Analyze the file:
# - detect endianess
# - get the offset data
# - get the value data
# - get raw image data if thumbnail is detected
Analyze the file:
detect endianess
get the offset data
get the value data
get raw image data if thumbnail is detected
Analyze the file : detect endianess get the offset data get the value data get raw image data if thumbnail is detected
def analyze
      vputs "Analysing: %s" % filename
      File.open(@filename, "rb") do |io|
        @io = io
        offset = detect_endianess()
        vputs "Endianess: " + @endianess.to_s
        get_all_offsets(offset)
        @@DATA.each do |k, v|
          get_values(v)
        end
        handle_embedded()
        gen_instance_variables()
      end
    end
def analyze vputs "Analysing: %s" % filename File . open ( @filename , "rb" ) do | io | @io = io offset = detect_endianess ( ) vputs "Endianess: " + @endianess . to_s get_all_offsets ( offset ) @@DATA . each do | k , v | get_values ( v ) end handle_embedded ( ) gen_instance_variables ( ) end end
Analyze the file:
 detect endianess
 get the offset data
 get the value data
 get raw image data if thumbnail is detected
Analyze the file : detect endianess get the offset data get the value data get raw image data if thumbnail is detected