Skip to content

Commit 43cc2f8

Browse files
committed
Install exiftool
1 parent 486a9df commit 43cc2f8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

recipes/setup.rb

+21
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,24 @@
421421

422422
# install rsvg-convert tool, for converting and resizing SVG image to PNG
423423
apt_package 'librsvg2-bin'
424+
425+
# Exiftool Installation
426+
exiftool_archive_path = ::File.join(Chef::Config[:file_cache_path], 'Image-ExifTool-12.77.tar.gz')
427+
428+
remote_file exiftool_archive_path do
429+
source 'https://jiffy-linux-packages.s3.amazonaws.com/Image-ExifTool-12.77.tar.gz'
430+
owner 'root'
431+
group 'root'
432+
mode '0755'
433+
end
434+
435+
execute 'install exiftool' do
436+
cwd Chef::Config[:file_cache_path]
437+
command <<-EOH
438+
gzip -dc Image-ExifTool-12.77.tar.gz | tar -xf -
439+
cd Image-ExifTool-12.77
440+
perl Makefile.PL
441+
sudo make install
442+
EOH
443+
action :run
444+
end

0 commit comments

Comments
 (0)