mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 13:58:41 +00:00
format...
This commit is contained in:
parent
cb21bf5fc2
commit
c67cf8e9af
2 changed files with 3 additions and 2 deletions
|
@ -83,8 +83,9 @@ defmodule Pleroma.Upload do
|
|||
def strip_exif_data(file) do
|
||||
settings = Application.get_env(:pleroma, Pleroma.Upload)
|
||||
@do_strip = Keyword.fetch!(settings, :strip_exif)
|
||||
|
||||
if @do_strip == true do
|
||||
Mogrify.open(file) |> Mogrify.custom("strip") |> Mogrify.save(in_place: true)
|
||||
Mogrify.open(file) |> Mogrify.custom("strip") |> Mogrify.save(in_place: true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue