-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExiftoolNotInstalled error when trying to remove EXIF data #28
Comments
Thank you for opening an issue. I believe that both exiftool.rb and exiftool_vendored.rb were intended as utilities to read exif data from files and not manipulate the files. I'm able to reproduce the issue that you've described. I will dig a little bit more into it in the next week. Meanwhile one of the workarounds would be to call built in Ruby Kernel methods with a Something along those lines with verbose output:
or with a
And of course improvement PRs are always welcome. |
In order to remove metadata from PDF documents we will use the exiftool_vendored gem. The following line: Exiftool.new(attachment_path, "-overwrite_original -all:all=") Overwrites the original file with another file without metadata. So far this is the best solution we have found to perform this metadata deletion. When using Exiftool an exception is thrown, so we added a rescue to handle it. Here is a task created where this problem is discussed: exiftool-rb/exiftool.rb#28. We'll wait to see if this will be fixed in future versions. Translated with www.DeepL.com/Translator (free version)
In order to remove metadata from PDF documents we will use the exiftool_vendored gem. The following line: Exiftool.new(attachment_path, "-overwrite_original -all:all=") Overwrites the original file with another file without metadata. So far this is the best solution we have found to perform this metadata deletion. When using Exiftool an exception is thrown, so we added a rescue to handle it. Here is a task created where this problem is discussed: exiftool-rb/exiftool.rb#28. We'll wait to see if this will be fixed in future versions. Translated with www.DeepL.com/Translator (free version)
In order to remove metadata from PDF documents we will use the exiftool_vendored gem. The following line: Exiftool.new(attachment_path, "-overwrite_original -all:all=") Overwrites the original file with another file without metadata. So far this is the best solution we have found to perform this metadata deletion. When using Exiftool an exception is thrown, so we added a rescue to handle it. Here is a task created where this problem is discussed: exiftool-rb/exiftool.rb#28. We'll wait to see if this will be fixed in future versions. Translated with www.DeepL.com/Translator (free version)
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
The text was updated successfully, but these errors were encountered: