Try specifying fd0, force jpg out
authorMark Felder <feld@FreeBSD.org>
Tue, 25 Aug 2020 23:10:27 +0000 (18:10 -0500)
committerMark Felder <feld@FreeBSD.org>
Tue, 25 Aug 2020 23:10:27 +0000 (18:10 -0500)
lib/pleroma/helpers/media_helper.ex

index 5fe13558460c72cf6fcad03d4be5671b6c687d2a..01f42d9b03f164ae2541b0637b687d0417d3822d 100644 (file)
@@ -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])