lib/imageprep/metadata.rb
# Write the JSON file to the same directory as the image with the .json extension 
Write the JSON file to the same directory as the image with the .json extension
Write the JSON file to the same directory as the image with the . json extension
def write_json(image_file_name)
      json_file_name = "#{File.dirname(image_file_name)}/#{File.basename(image_file_name,'.*')}.json"
      File.open(json_file_name,'w'){ |file| 
        file.write(to_json) 
      }
      json_file_name
    end
def write_json ( image_file_name ) json_file_name = "#{File.dirname(image_file_name)}/#{File.basename(image_file_name,'.*')}.json" File . open ( json_file_name , 'w' ) { | file | file . write ( to_json ) } json_file_name end
Write the JSON file to the same directory as the image with the .json extension
Write the JSON file to the same directory as the image with the . json extension
image_file_name
<not_specific>