projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afa03ca
)
Try specifying fd0, force jpg out
author
Mark Felder
<feld@FreeBSD.org>
Tue, 25 Aug 2020 23:10:27 +0000
(18:10 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Tue, 25 Aug 2020 23:10:27 +0000
(18:10 -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 5fe13558460c72cf6fcad03d4be5671b6c687d2a..01f42d9b03f164ae2541b0637b687d0417d3822d 100644
(file)
--- a/
lib/pleroma/helpers/media_helper.ex
+++ b/
lib/pleroma/helpers/media_helper.ex
@@
-11,7
+11,7
@@
defmodule Pleroma.Helpers.MediaHelper do
quality = options[:quality] || 85
cmd = ~s"""
- convert
- -resize '#{max_width}x#{max_height}>' -quality #{quality}
-
+ convert
fd:0 -resize '#{max_width}x#{max_height}>' -quality #{quality} jpg:
-
"""
pid = Port.open({:spawn, cmd}, [:use_stdio, :stream, :exit_status, :binary])