a way to turn off exception when exiftool command is not available
akwiatkowski opened this issue · 2 comments
akwiatkowski commented
I'd like to have a way to turn off exception when exiftool command is not available at the moment of loading of this gem. I've created one quite ugly solution which works for me.
janfri commented
I do not understand why this should be useful. Could you explain it to me?
akwiatkowski commented
I have one gem for geotagging photos, manipulating gpx files and performing some geo-location stuff. I didn't want to split this gem into two because heroku (rails cloud server) has not exiftool and I couldn't deploy there.
Solution for my situation:
begin
require 'mini_exiftool'
rescue LoadError
rescue
end