janfri/mini_exiftool

a way to turn off exception when exiftool command is not available

akwiatkowski opened this issue · 2 comments

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.

I do not understand why this should be useful. Could you explain it to me?

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