projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddbddc0
)
Allow both stdin and stdout
author
Mark Felder
<feld@FreeBSD.org>
Tue, 25 Aug 2020 22:36:53 +0000
(17:36 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Tue, 25 Aug 2020 22:36:53 +0000
(17:36 -0500)
lib/pleroma/helpers/media_helper.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/helpers/media_helper.ex
b/lib/pleroma/helpers/media_helper.ex
index 07e6dba5ee7d614ccd606a430ed656c2e85e362c..5fe13558460c72cf6fcad03d4be5671b6c687d2a 100644
(file)
--- a/
lib/pleroma/helpers/media_helper.ex
+++ b/
lib/pleroma/helpers/media_helper.ex
@@
-14,7
+14,7
@@
defmodule Pleroma.Helpers.MediaHelper do
convert - -resize '#{max_width}x#{max_height}>' -quality #{quality} -
"""
- pid = Port.open({:spawn, cmd}, [:use_stdio, :
in, :
stream, :exit_status, :binary])
+ pid = Port.open({:spawn, cmd}, [:use_stdio, :stream, :exit_status, :binary])
{:ok, env} = url |> Pleroma.Web.MediaProxy.url() |> Pleroma.HTTP.get()
image = env.body
Port.command(pid, image)