mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-11 03:39:13 +00:00
Try specifying fd0, force jpg out
This commit is contained in:
parent
afa03ca8e2
commit
a136e7e9b5
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ defmodule Pleroma.Helpers.MediaHelper do
|
||||||
quality = options[:quality] || 85
|
quality = options[:quality] || 85
|
||||||
|
|
||||||
cmd = ~s"""
|
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])
|
pid = Port.open({:spawn, cmd}, [:use_stdio, :stream, :exit_status, :binary])
|
||||||
|
|
Loading…
Reference in a new issue