Skip to content

seems to be an error on line 21 of exiftool.rb #11

Closed

Description

@unbewusst

I had to change line 21 to
exiftool_version.to_f > 0.0

because as steated on line 24

This is a string, not a float, to handle versions like "9.40" properly.

also I'm planning to add functionnality to write GPS datas...

Activity

  1. unbewusst commented on Nov 11, 2017

    @unbewusst
    Author

    first mokeup of my addon #setGPS
    class Exiftool
    def self.setGPS file, gps
    exiftool_opts = ""
    gps.each do |field, value|
    exiftool_opts << "'-EXIF:#{field}=#{value}' "
    end
    cmd = "#{self.command} #{exiftool_opts} #{Shellwords.escape file.to_s} 2> /dev/null"
    #puts "cmd = '#{cmd}'"
    return #{cmd}.strip.gsub(/^(\d+).*/, '\1').to_i == 1
    end
    end

    I'll arrange, as u, to set several files instead of only one...

  2. unbewusst commented on Nov 11, 2017

    @unbewusst
    Author

    the backticks are laking because of pasting I mean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions