-
Notifications
You must be signed in to change notification settings - Fork 211
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
How to delete temporary file automatically #256
Comments
I read the code that it invoke System.tmp_dir() method.
So I export TMPDIR=/tmp/imagemagick. The temp file will save in this folder.And you need to delete them manually. |
Any update on this? I'm seeing temporary files being left behind as well when using def transform(:thumb, _) do
convert_opts =
"-strip -thumbnail 250x250> -gravity center -background none -extent 250x250 -format png"
{:convert, convert_opts, :png}
end |
I have a fork (master...hollar:hollar) that I'm maintaining that removes temporary files after processing. We were processing a large number of files in a small amount of time which ended up flooding the |
I use local adapter and transform like this
Then I found it will generate a temporary file in temp folder.And I read the code in convert.ex and find this
So I need to delete them manually. Do there have any solution to delete them automatically after upload successfully?
The text was updated successfully, but these errors were encountered: