ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: bquimby1 on March 15, 2021, 12:13:24 PM

Title: EXIFTOOL with Service Providers
Post by: bquimby1 on March 15, 2021, 12:13:24 PM
My two service providers GoDaddy and IONOS don't support EXIFTOOL in their PERL package.   IONOS doesn't support PHP's read_exif_data() function.  I  have a PHP application that uses command line EXIFtool and Perl scripts that use Image::ExifTool.  Is there a way for me to install EXIFTOOL in my personal space with these providers?  I'm thinking that I can create an EXIFTOOL directory and install it there but need confirmation before I do this and maybe an environment variable to help Perl find the package?
Title: Re: EXIFTOOL with Service Providers
Post by: Phil Harvey on March 15, 2021, 09:27:51 PM
Good news:  You don't need to install ExifTool to use it.  Just unpack the .tar.gz package and move "exiftool" and the "lib" directory to wherever you want and run it the command line exiftool from there.  For your Perl scripts, just add this lib to the @INC in a BEGIN statement before using Image::ExifTool.

- Phil
Title: Re: EXIFTOOL with Service Providers
Post by: bquimby1 on March 18, 2021, 11:51:52 AM
Thanks Phil.  EXIFTOOL is a very well thought out package.  I actually don't need the libraries on my websites.  I run them on my Mac to manipulate the EXIF data in images there.   I have it running from the command line on my IONOS site.  I simply tar'd up the code from /usr/local/bin on my mac and moved it to IONOS.  I updated the PATH environment variable and that was that (ain't PERL wonderful).   Now all I need to do is get my PHP website to find it and I'm good.  It took me less than 10 minutes to make it work from the command line and a few more minutes to make the exiftool command in my PHP scripts a variable!   Thanks again!