Hi. I'm trying to remove some sensitive information (e.g.: GPS location) from uploaded files using exiftool.
When I try to check the existing EXIF data, it works:
Exiftool.new(file_path, '-ignoreMinorErrors').to_hash
# {
# "source_file": "image_with_gps.jpg",
# "exif_tool_version": 11.88,
# "file_name": "image_with_gps.jpg",
# "file_size": "6.0 MB",
# ...
# }
However, as soon as I try to change something in the file it starts complaining that exiftool is not installed
Exiftool.new(file_path, '-ignoreMinorErrors -gps:all= "-gps*=" -tagsfromfile @ -Orientation')
# Exiftool::ExiftoolNotInstalled raised
The problem seems to be with the lines checking that the result of the exiftool command is an empty string: lib/exiftool.rb#L58-L60.
- Is this gem meant to be used for manipulating EXIF data? If no, is there one that you can recommend?
- Is there any additional exiftool option I need to add to keep my command compatible with this gem?
I would help creating a PR to make my use-case viable if you're interested in it
Hi. I'm trying to remove some sensitive information (e.g.: GPS location) from uploaded files using exiftool.
When I try to check the existing EXIF data, it works:
However, as soon as I try to change something in the file it starts complaining that exiftool is not installed
The problem seems to be with the lines checking that the result of the exiftool command is an empty string: lib/exiftool.rb#L58-L60.
I would help creating a PR to make my use-case viable if you're interested in it