This library is a wrapper for the Exiftool command-line application (https://exiftool.org) written by Phil Harvey. It provides the full power of Exiftool to Ruby: reading and writing of EXIF-data, IPTC-data and XMP-data. Branch master is for actual development and branch compatibility-version is for compatibility with Ruby 1.8 and exiftool versions prior 7.65.
GNU Lesser General Public License v2.1
213
stars
52
forks
source link
Handle additional exception RangeError in timestamp converting #45
Imagine a Meta Info like (real example from wildlife)
GPS Date Time: 2024:02:24 15:50:140501265154082Z
This resulted (with at least ruby 3.1.4) into
integer 140501265154082 too big to convert to `int'
/usr/local/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/time.rb:264:in `utc'
/usr/local/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/time.rb:264:in `make_time'
/usr/local/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/time.rb:383:in `parse'
bundle/ruby/3.1.0/gems/mini_exiftool-2.10.4/lib/mini_exiftool.rb:454:in `convert_after_load'
Perhaps the regex should actually catch this. But I think this is a pragmatic solution
Imagine a Meta Info like (real example from wildlife) GPS Date Time: 2024:02:24 15:50:140501265154082Z
This resulted (with at least ruby 3.1.4) into
Perhaps the regex should actually catch this. But I think this is a pragmatic solution