From b40581c4e8b07748ccf58ca6f3923be542ed8f93 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 16 Feb 2021 09:10:37 -0600 Subject: [PATCH] Cleanup extra temp file --- lib/pleroma/upload/filter/heif_to_jpeg.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/upload/filter/heif_to_jpeg.ex b/lib/pleroma/upload/filter/heif_to_jpeg.ex index 05f0fe816..7915bfbfb 100644 --- a/lib/pleroma/upload/filter/heif_to_jpeg.ex +++ b/lib/pleroma/upload/filter/heif_to_jpeg.ex @@ -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