ExifTool Forum

ExifTool => Developers => Topic started by: jguil1689 on June 01, 2021, 09:42:14 AM

Title: Problem executing exiftool on linux server
Post by: jguil1689 on June 01, 2021, 09:42:14 AM
I recently have been assigned to extract metadata from photos for our web application that already has a really large database.

I got everything to functioning correctly on a ROR application using the mini_exiftool gem on my machine, I am currently running mac os big sur. The problem started when I needed it to function on the server that is running on linux.

Currently I can see that exiftool is installed globally and I can even run it from the root directory of the rails application.

Currently I am using mini_magick gem to get the path to use on the mini_exiftool gem


image = MiniMagick::Image.open(@post.photo)
photoMetaData = MiniExiftool.new image.path


Once this code runs I keep getting an error
Command 'exiftool' not found

I am not sure what problem could be but I have hit a wall with trying different solutions because nothing seems to work. So if there is any insight out there I would greatly appreciate it because exiftool is pretty new to me.
Title: Re: Problem executing exiftool on linux server
Post by: StarGeek on June 01, 2021, 11:24:13 AM
I'm assuming this (https://github.com/janfri/mini_exiftool) is the wrapper you're using?

One thing that has popped up here before when using a wrapper like this is that the path available on the command line is not the path available to the wrapper.  Have you tried manually setting the path to exiftool as detailed here (https://github.com/janfri/mini_exiftool#configuration)?  Or maybe use the mini_exiftool_vendored versions listed here (https://github.com/janfri/mini_exiftool#requirements) that include exiftool as part of the gem?