Clearer assignment name

This commit is contained in:
Mark Felder 2021-02-15 15:23:14 -06:00
parent d3cf505b42
commit 390b4471f2

View File

@ -33,11 +33,11 @@ defmodule Pleroma.Upload.Filter.HeifToJpeg do
# https://github.com/route/mogrify/issues/77
# also need a valid extension or it gets confused
original = tempfile <> ".heic"
File.rename!(tempfile, original)
with_extension = tempfile <> ".heic"
File.rename!(tempfile, with_extension)
%{path: converted} =
original
with_extension
|> Mogrify.open()
|> Mogrify.format("jpg")
|> Mogrify.save()