Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
lain.church
Yardım
Üye Ol
Giriş Yap
squeegily
/
pleroma
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Değişiklik İstekleri
0
Sürümler
42
Wiki
Aktivite
Kaynağa Gözat
filter exif data
#187
tags/v0.9.9
Tristan Mahé
6 yıl önce
ebeveyn
fc012491a5
işleme
cb21bf5fc2
3 değiştirilmiş dosya
ile
13 ekleme
ve
2 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+3
-1
config/config.exs
+8
-0
lib/pleroma/upload.ex
+2
-1
mix.exs
+ 3
- 1
config/config.exs
Dosyayı Görüntüle
@@ -10,7 +10,9 @@ config :pleroma, ecto_repos: [Pleroma.Repo]
config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
config :pleroma, Pleroma.Upload, uploads: "uploads"
config :pleroma, Pleroma.Upload,
uploads: "uploads",
strip_exif: false
# Configures the endpoint
config :pleroma, Pleroma.Web.Endpoint,
+ 8
- 0
lib/pleroma/upload.ex
Dosyayı Görüntüle
@@ -80,6 +80,14 @@ defmodule Pleroma.Upload do
}
end
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)
end
end
def upload_path do
settings = Application.get_env(:pleroma, Pleroma.Upload)
Keyword.fetch!(settings, :uploads)
+ 2
- 1
mix.exs
Dosyayı Görüntüle
@@ -47,7 +47,8 @@ defmodule Pleroma.Mixfile do
{:jason, "~> 1.0"},
{:ex_machina, "~> 2.0", only: :test},
{:credo, "~> 0.7", only: [:dev, :test]},
{:mock, "~> 0.3.0", only: :test}
{:mock, "~> 0.3.0", only: :test},
{:mogrify, "~> 0.6.1"}
]
end
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet