Cleanup extra temp file

This commit is contained in:
Mark Felder 2021-02-16 09:10:37 -06:00
parent 13b57f2cb3
commit b40581c4e8

View File

@ -42,6 +42,7 @@ defmodule Pleroma.Upload.Filter.HeifToJpeg do
|> Mogrify.format("jpg")
|> Mogrify.save()
File.rm!(with_extension)
File.rename!(converted, tempfile)
end
end