You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unless ARGV[0] and File.exists?(ARGV[0])
puts "You need to give a name: imageInfo.rb \n\n"
exit
end
info = JPEG.new(ARGV[0])
File.open("info_#{File.basename(ARGV[0])}.txt", "w") do |output|
output.puts info.exif.to_hash.map{ |k,v| "#{k}: #{v}" }
end
undefined method `to_hash' for nil:NilClass (NoMethodError)
What's wrong?
The text was updated successfully, but these errors were encountered:
require 'exifr'
include EXIFR
unless ARGV[0] and File.exists?(ARGV[0])
puts "You need to give a name: imageInfo.rb \n\n"
exit
end
info = JPEG.new(ARGV[0])
File.open("info_#{File.basename(ARGV[0])}.txt", "w") do |output|
output.puts info.exif.to_hash.map{ |k,v| "#{k}: #{v}" }
end
undefined method `to_hash' for nil:NilClass (NoMethodError)
What's wrong?
The text was updated successfully, but these errors were encountered: