You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Minimagick and my folder /tmp don't stop growing with file like mini_magick20180220-95997-y59ae0.jpg.
I use minimagick like this :
begin
image = MiniMagick::Image.open("#{absolute_path}/#{file}")
image.thumbnail(THUMBNAILS_DIMENSION)
image.write "#{thumbnails_absolute_path}/#{file}"
rescue StandardError
end
I miss something ?
The text was updated successfully, but these errors were encountered:
kaluznyo
changed the title
Tempfile never delete
Tempfile never deleted
Feb 20, 2018
You could add a block notation that destroy the tempfile :
MiniMagick::Image.open("#{absolute_path}/#{file}") do |image|
image.thumbnail(THUMBNAILS_DIMENSION)
image.write "#{thumbnails_absolute_path}/#{file}"
end
I use Minimagick and my folder /tmp don't stop growing with file like mini_magick20180220-95997-y59ae0.jpg.
I use minimagick like this :
I miss something ?
The text was updated successfully, but these errors were encountered: